home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / Technical Docs / Inside Macintosh / Inside Macintosh Vol. VI / Support files / Browser.d next >
Encoding:
Text File  |  1991-04-17  |  94.3 KB  |  3,848 lines  |  [TEXT/tefi]

  1. æKY Document.Info
  2. æT standardDocument
  3. æKY Document.SeqChapters
  4. æN Preface
  5. Introduction to the System Software Version 7.0 Environment
  6. User Interface Guidelines
  7. Compatibility Guidelines
  8. Edition Manager
  9. Event Manager
  10. Apple Event Manager
  11. Program-To-Program Communications Toolbox
  12. Data Access Manager
  13. Finder Interface
  14. Control Panels
  15. Help Manager
  16. Font Manager
  17. Resource Manager
  18. Worldwide Software Overview
  19. TextEdit
  20. Graphics Overview
  21. Color QuickDraw
  22. Picture Utilities Package
  23. Color Picker Package
  24. Palette Manager
  25. Graphics Devices Manager
  26. Sound Manager
  27. Time Manager
  28. Notification Manager
  29. File Manager
  30. Standard File Package
  31. Alias Manager
  32. Memory Management
  33. Process Management
  34. Slot Manager
  35. Power Manager
  36. AppleTalk Manager
  37. Appendix A: Result Codes
  38. Appendix B: Routines and Their Memory Behavior
  39. Appendix C: System Traps
  40. Appendix D: Global Variables
  41. Appendix E: The Standard Roman Character Set
  42. Glossary
  43. æC card currentCardNumber
  44. card 44
  45. card 67
  46. card 112
  47. card 167
  48. card 227
  49. card 259
  50. card 324
  51. card 359
  52. card 404
  53. card 443
  54. card 465
  55. card 508
  56. card 526
  57. card 555
  58. card 708
  59. card 757
  60. card 777
  61. card 815
  62. card 831
  63. card 850
  64. card 883
  65. card 910
  66. card 992
  67. card 1012
  68. card 1026
  69. card 1072
  70. card 1089
  71. card 1114
  72. card 1175
  73. card 1196
  74. card 1215
  75. card 1243
  76. card 1300
  77. card 1302
  78. card 1303
  79. card 1306
  80. card 1307
  81. card 1309
  82. æKY Document.AlphaChapters
  83. æN Alias Manager
  84. Appendix A: Result Codes
  85. Appendix B: Routines and Their Memory Behavior
  86. Appendix C: System Traps
  87. Appendix D: Global Variables
  88. Appendix E: The Standard Roman Character Set
  89. Apple Event Manager
  90. AppleTalk Manager
  91. Color Picker Package
  92. Color QuickDraw
  93. Compatibility Guidelines
  94. Control Panels
  95. Data Access Manager
  96. Edition Manager
  97. Event Manager
  98. File Manager
  99. Finder Interface
  100. Font Manager
  101. Glossary
  102. Graphics Devices Manager
  103. Graphics Overview
  104. Help Manager
  105. Introduction to the System Software Version 7.0 Environment
  106. Memory Management
  107. Notification Manager
  108. Palette Manager
  109. Picture Utilities Package
  110. Power Manager
  111. Preface
  112. Process Management
  113. Program-To-Program Communications Toolbox
  114. Resource Manager
  115. Slot Manager
  116. Sound Manager
  117. Standard File Package
  118. TextEdit
  119. Time Manager
  120. User Interface Guidelines
  121. Worldwide Software Overview
  122. æC card 1089
  123. card 1300
  124. card 1302
  125. card 1303
  126. card 1306
  127. card 1307
  128. card 259
  129. card 1243
  130. card 831
  131. card 777
  132. card 112
  133. card 443
  134. card 359
  135. card 167
  136. card 227
  137. card 1026
  138. card 404
  139. card 508
  140. card 1309
  141. card 883
  142. card 757
  143. card 465
  144. card 44
  145. card 1114
  146. card 1012
  147. card 850
  148. card 815
  149. card 1215
  150. card currentCardNumber
  151. card 1175
  152. card 324
  153. card 526
  154. card 1196
  155. card 910
  156. card 1072
  157. card 708
  158. card 992
  159. card 67
  160. card 555
  161. æKY Preface.Sections
  162. æN  About Inside Macintosh 
  163.    The Development Environment 
  164.    The System Software Environment 
  165.    The Format of a Typical Chapter 
  166.    The Conventions Used in This Volume 
  167.    Other Documentation 
  168.  An Overview of the Chapters in Volume VI 
  169.    Introduction to the Version 7.0 Environment 
  170.    User Interface Guidelines 
  171.    Compatibility Guidelines 
  172.    The Edition Manager 
  173.    The Event Manager 
  174.    The Apple Event Manager 
  175.    The Program-to-Program Communications Toolbox 
  176.    The Data Access Manager 
  177.    The Finder Interface 
  178.    Control Panels 
  179.    The Help Manager 
  180.    The Font Manager 
  181.    The Resource Manager 
  182.    Worldwide Software Overview 
  183.    TextEdit 
  184.    Graphics Overview 
  185.    Color QuickDraw 
  186.    The Picture Utilities Package 
  187.    The Color Picker Package 
  188.    The Palette Manager 
  189.    The Graphics Devices Manager 
  190.    The Sound Manager 
  191.    The Time Manager 
  192.    The Notification Manager 
  193.    The File Manager 
  194.    The Standard File Package 
  195.    The Alias Manager 
  196.    Memory Management 
  197.    Process Management 
  198.    The Slot Manager 
  199.    The Power Manager 
  200.    The AppleTalk Manager 
  201.  A Road Map to Volume VI 
  202. æC card 4
  203. card 5
  204. card 6
  205. card 7
  206. card 8
  207. card 9
  208. card 10
  209. card 11
  210. card 12
  211. card 13
  212. card 14
  213. card 15
  214. card 16
  215. card 17
  216. card 18
  217. card 19
  218. card 20
  219. card 21
  220. card 22
  221. card 23
  222. card 24
  223. card 25
  224. card 26
  225. card 27
  226. card 28
  227. card 29
  228. card 30
  229. card 31
  230. card 32
  231. card 33
  232. card 34
  233. card 35
  234. card 36
  235. card 37
  236. card 38
  237. card 39
  238. card 40
  239. card 41
  240. card 42
  241. card 43
  242. æKY Preface.Figures
  243. æN  Figure P-1  A road map to Volume VI 
  244. æC line 3 of card 43
  245. æKY Introduction to the System Software Version 7.0 Environment.Sections
  246. æN  About This Chapter 
  247.  About the Version 7.0 Environment 
  248.    The Cooperative Multitasking Environment 
  249.    Interapplication Communication 
  250.      Sharing Data Among Applications 
  251.      Sending Events Between Applications 
  252.      Exchanging Message Blocks Between Programs 
  253.    Remote Data Access 
  254.    Enhanced User Interface 
  255.    Sound 
  256.    TrueType Fonts 
  257.    Graphics 
  258.    File Management 
  259.    Memory Management 
  260.      Temporary Memory 
  261.      24-Bit and 32-Bit Addressing 
  262.    Process Management 
  263.    Timing Services 
  264.    Compatibility 
  265.    Worldwide Development 
  266.    Communication Over a Network 
  267.    Hardware Interfaces 
  268.  Overview of Chapters In This Volume 
  269. æC card 44
  270. card 45
  271. card 46
  272. card 47
  273. card 48
  274. card 49
  275. card 50
  276. card 51
  277. card 52
  278. card 53
  279. card 54
  280. card 55
  281. card 56
  282. card 57
  283. card 58
  284. card 59
  285. card 60
  286. card 61
  287. card 62
  288. card 63
  289. card 64
  290. card 65
  291. card 66
  292. æKY Introduction to the System Software Version 7.0 Environment.Figures
  293. æN  Figure 1-1  Features of the system software version 7.0 environment 
  294.  Figure 1-2  Managers in the interapplication communications architecture 
  295.  Figure 1-3  Using interapplication communication 
  296.  Figure 1-4  Applications using interapplication communication 
  297.  Figure 1-5  A publisher, an edition, and a subscriber 
  298.  Figure 1-6  Sharing dynamic data with other applications 
  299.  Figure 1-7  Sending events to other applications 
  300.  Figure 1-8  Requesting data from a remote database 
  301.  Figure 1-9  Comparison of TrueType and bitmapped fonts 
  302.  Figure 1-10  Using multiple scripts in a single document 
  303.  Figure 1-11  Overview of chapters in Volume VI 
  304. æC line 28 of card 45
  305. line 11 of card 47
  306. line 36 of card 47
  307. line 39 of card 47
  308. line 11 of card 48
  309. line 18 of card 48
  310. line 15 of card 49
  311. line 7 of card 51
  312. line 13 of card 54
  313. line 17 of card 63
  314. line 7 of card 66
  315. æKY User Interface Guidelines.Sections
  316. æN  About This Chapter 
  317.  User Interface Design Principles   
  318.  Worldwide Software Development 
  319.    Cultural Values 
  320.    Resources 
  321.    Language Differences 
  322.    Text Display and Text Editing 
  323.    Default Alignment of Interface Elements 
  324.    Keyboards  
  325.    Fonts 
  326.  User Documentation 
  327.  Terminology 
  328.  The Version 7.0 Environment 
  329.    User Feedback 
  330.    Background Notification 
  331.  Color Design for Version 7.0 
  332.    General Color Design Guidelines 
  333.    The Icon Family  
  334.    Black-and-White Icons  
  335.    Small Icons 
  336.    Color Icons 
  337.    Consistent Use of Icons 
  338.    Customized Icons 
  339.  Windows 
  340.    Window Positions 
  341.    The Zoom Box and Window Behavior 
  342.  Dialog Boxes 
  343.    Modal Dialog Box Behaviors 
  344.    Movable Modal Dialog Boxes 
  345.    Keyboard Navigation in Dialog Boxes 
  346.    Button Labels 
  347.    Dialog Box Layout 
  348.    Dialog Box Messages 
  349.    Standard File Dialog Boxes 
  350.    Save Changes Dialog Box 
  351.  Menus  
  352.    File Menu 
  353.    Edit Menu 
  354.    Font Menu 
  355.    Help Menu 
  356.    Keyboard Equivalents 
  357.    Pop-Up Menus 
  358.      Standard Pop-Up Menus 
  359.      Type-In Pop-Up Menus 
  360.  More User Interface Information  
  361. æC card 67
  362. card 68
  363. card 69
  364. card 70
  365. card 71
  366. card 72
  367. card 73
  368. card 74
  369. card 75
  370. card 76
  371. card 77
  372. card 78
  373. card 79
  374. card 80
  375. card 81
  376. card 82
  377. card 83
  378. card 84
  379. card 85
  380. card 86
  381. card 87
  382. card 88
  383. card 89
  384. card 90
  385. card 91
  386. card 92
  387. card 93
  388. card 94
  389. card 95
  390. card 96
  391. card 97
  392. card 98
  393. card 99
  394. card 100
  395. card 101
  396. card 102
  397. card 103
  398. card 104
  399. card 105
  400. card 106
  401. card 107
  402. card 108
  403. card 109
  404. card 110
  405. card 111
  406. æKY User Interface Guidelines.Figures
  407. æN  Figure 2-1  Dual carets in mixed-directional text 
  408.  Figure 2-2  Multidirectional text correctly highlighted 
  409.  Figure 2-3  Reversing the alignment of dialog box items 
  410.  Figure 2-4  The Keyboard menu 
  411.  Figure 2-5  The boundaries of a font 
  412.  Figure 2-6  A progress indicator 
  413.  Figure 2-7  The Application menu with a notification symbol 
  414.  Figure 2-8  An icon family 
  415.  Figure 2-9  A well-designed icon and its selected version 
  416.  Figure 2-10  A poorly designed icon and its selected version 
  417.  Figure 2-11  Default system icons in black and white 
  418.  Figure 2-12  Examples of control panel icons 
  419.  Figure 2-13  A movable modal dialog box 
  420.  Figure 2-14  A Finder movable modal dialog box 
  421.  Figure 2-15  A selected scrolling list 
  422.  Figure 2-16  A dialog box with OK and Cancel buttons 
  423.  Figure 2-17  A dialog box with OK instead of a Cancel button 
  424.  Figure 2-18  A progress indicator that uses a Stop button 
  425.  Figure 2-19  A confirmation alert box 
  426.  Figure 2-20  The recommended spacing of buttons and text in a dialog box 
  427.  Figure 2-21  A well-written dialog box message 
  428.  Figure 2-22  The new standard file dialog box for opening files 
  429.  Figure 2-23  The save changes dialog box 
  430.  Figure 2-24  A sample Edit menu 
  431.  Figure 2-25  A hierarchical menu with Edition Manager commands 
  432.  Figure 2-26  A sample pull-down Size menu and font size dialog box 
  433.  Figure 2-27  The Help menu 
  434.  Figure 2-28  The appearance of a version 7.0 pop-up menu 
  435.  Figure 2-29  An open version 7.0 pop-up menu 
  436.  Figure 2-30  A type-in pop-up menu 
  437.  Figure 2-31  A type-in pop-up menu with user’s choice added 
  438. æC line 17 of card 73
  439. line 22 of card 73
  440. line 7 of card 74
  441. line 7 of card 75
  442. line 6 of card 76
  443. line 3 of card 80
  444. line 3 of card 81
  445. line 3 of card 84
  446. line 3 of card 85
  447. line 8 of card 85
  448. line 36 of card 89
  449. line 43 of card 89
  450. line 5 of card 95
  451. line 12 of card 95
  452. line 7 of card 96
  453. line 9 of card 97
  454. line 16 of card 97
  455. line 23 of card 97
  456. line 30 of card 97
  457. line 3 of card 98
  458. line 3 of card 99
  459. line 5 of card 100
  460. line 9 of card 101
  461. line 15 of card 104
  462. line 20 of card 104
  463. line 5 of card 105
  464. line 3 of card 106
  465. line 3 of card 109
  466. line 8 of card 109
  467. line 3 of card 110
  468. line 8 of card 110
  469. æKY User Interface Guidelines.Tables
  470. æN  Table 2-1  Examples of keyboard icons 
  471.  Table 2-2  Pattern substitutions for colors in keyboard icons 
  472.  Table 2-3  Translation chart for user documentation   
  473.  Table 2-4  Apple reserved keyboard equivalents for all systems 
  474.  Table 2-5  Additional reserved keyboard equivalents for worldwide systems 
  475.  Table 2-6  Other common keyboard equivalents 
  476. æC line 21 of card 75
  477. line 28 of card 75
  478. line 6 of card 78
  479. line 4 of card 107
  480. line 18 of card 107
  481. line 37 of card 107
  482. æKY Compatibility Guidelines.Sections
  483. æN  About This Chapter 
  484.  About Compatibility 
  485.    Using Memory Wisely 
  486.    Using Assembly Language 
  487.    Accessing Hardware 
  488.    Using Low-Memory Global Variables 
  489.    Determining Whether a Trap Is Available 
  490.  Running in System Software Version 7.0 
  491.    Allowing Multiple Applications 
  492.    Supporting Required Apple Events 
  493.    Removing Font Size Restrictions 
  494.    Operating With Virtual Memory 
  495.    Enabling Menus During a Modal Dialog 
  496.    Coexisting With the System Menus 
  497.    Creating Movable Modal Dialog Boxes 
  498.    Creating Pop-Up Menus 
  499.    Manipulating Dialog Item Lists 
  500.      Counting Items in a Dialog Item List 
  501.      Appending Items to a Dialog Item List 
  502.      Shortening a Dialog Item List 
  503.  Localizing Macintosh Programs 
  504.    General Guidelines 
  505.    Localizing With the Toolbox 
  506.  Running Macintosh Programs Under A/UX 
  507.    How the A/UX Toolbox Works 
  508.    Using the A/UX Toolbox 
  509.    A/UX Compatibility Guidelines 
  510.  About the Gestalt Manager 
  511.  Using the Gestalt Manager 
  512.    Determining Features of the Operating Environment 
  513.    Determining Whether Gestalt Is Available 
  514.    Interpreting Gestalt Responses 
  515.      Interpreting Responses to Environmental Selectors 
  516.      Interpreting Responses to Informational Selectors 
  517.    Adding Gestalt Selectors 
  518.    Modifying Gestalt Selectors 
  519.    Specifying Gestalt Selector Functions 
  520.  Gestalt Manager Routines 
  521.    Getting Information About the Operating Environment 
  522.    Adding Selector Codes 
  523.    Modifying Selector Codes 
  524.  Summary of the Gestalt Manager 
  525.    Constants 
  526.    Routines 
  527.    Application-Defined Routines 
  528.    Result Codes 
  529.  Summary of the Window Manager 
  530.    Constants 
  531.  Summary of the Control Manager 
  532.    Constants 
  533.    Data Type 
  534.  Summary of the Dialog Manager 
  535.    Constants 
  536.    Data Type 
  537.    Routines 
  538. æC card 112
  539. card 113
  540. card 114
  541. card 115
  542. card 116
  543. card 117
  544. card 118
  545. card 119
  546. card 120
  547. card 121
  548. card 122
  549. card 123
  550. card 124
  551. card 125
  552. card 126
  553. card 127
  554. card 128
  555. card 129
  556. card 130
  557. card 131
  558. card 132
  559. card 133
  560. card 134
  561. card 135
  562. card 136
  563. card 137
  564. card 138
  565. card 139
  566. card 140
  567. card 141
  568. card 142
  569. card 143
  570. card 144
  571. card 145
  572. card 146
  573. card 147
  574. card 148
  575. card 149
  576. card 150
  577. card 151
  578. card 152
  579. card 153
  580. card 154
  581. card 155
  582. card 156
  583. card 157
  584. card 158
  585. card 159
  586. card 160
  587. card 161
  588. card 162
  589. card 163
  590. card 164
  591. card 165
  592. card 166
  593. æKY Compatibility Guidelines.Figures
  594. æN  Figure 3-1  The size menu for a bitmapped font 
  595.  Figure 3-2  The size menu for an outline font 
  596.  Figure 3-3  A pop-up menu in its inactive and active states 
  597.  Figure 3-4  A pop-up control that is right-aligned 
  598.  Figure 3-5  An initial dialog box and a list of items to append 
  599.  Figure 3-6  The dialog box after items are overlaid 
  600.  Figure 3-7  The dialog box after items are appended to the right 
  601.  Figure 3-8  The dialog box after items are appended to the bottom 
  602.  Figure 3-9  The dialog box after items are appended relative to Item 2 
  603.  Figure 3-10  An application, the A/UX Toolbox, and ROM code 
  604. æC line 5 of card 122
  605. line 10 of card 122
  606. line 3 of card 127
  607. line 44 of card 127
  608. line 18 of card 130
  609. line 23 of card 130
  610. line 30 of card 130
  611. line 37 of card 130
  612. line 44 of card 130
  613. line 11 of card 136
  614. æKY Compatibility Guidelines.Tables
  615. æN  Table 3-1  Status of User Interface Toolbox and Macintosh Operating System 
  616. æC line 4 of card 137
  617. æKY Compatibility Guidelines.Listings
  618. æN  Listing 3-1  Determining whether a trap is available 
  619.  Listing 3-2  Determining whether Gestalt is available 
  620.  Listing 3-3  Using Gestalt to determine the Time Manager version 
  621.  Listing 3-4  Interpreting a bit field response 
  622.  Listing 3-5  Installing a selector function into the system heap 
  623.  Listing 3-6  Defining a new Gestalt function 
  624. æC line 13 of card 118
  625. line 4 of card 142
  626. line 23 of card 142
  627. line 32 of card 143
  628. line 11 of card 146
  629. line 73 of card 146
  630. æKY Edition Manager.Sections
  631. æN  About This Chapter 
  632.  About the Edition Manager 
  633.  Publishers, Subscribers, and Editions 
  634.  Using The Edition Manager 
  635.    Receiving Apple Events From the Edition Manager 
  636.    Creating the Section Record and Alias Record 
  637.    Saving a Document Containing Sections 
  638.    Opening and Closing a Document Containing Sections 
  639.    Reading and Writing a Section 
  640.      Formats in an Edition 
  641.      Opening an Edition 
  642.      Format Marks 
  643.      Reading and Writing Edition Data 
  644.      Closing an Edition 
  645.    Creating a Publisher 
  646.      Creating the Edition Container 
  647.      Opening an Edition Container to Write Data 
  648.    Creating a Subscriber 
  649.      Opening an Edition Container to Read Data 
  650.      Choosing Which Edition Format to Read 
  651.    Using Publisher and Subscriber Options 
  652.      Publishing a New Edition While Saving or Manually 
  653.      Subscribing to an Edition Automatically or Manually 
  654.      Canceling Sections Within Documents 
  655.      Locating a Publisher Through a Subscriber 
  656.    Renaming a Document Containing Sections 
  657.    Displaying Publisher and Subscriber Borders 
  658.      Text Borders 
  659.      Spreadsheet Borders 
  660.      Object-Oriented Graphics Borders 
  661.      Bitmapped Graphics Borders 
  662.      Duplicating Publishers and Subscribers 
  663.    Modifying a Subscriber 
  664.    Relocating an Edition 
  665.    Customizing Dialog Boxes 
  666.  Subscribing To Non-Edition Files 
  667.    Getting the Current Edition Opener 
  668.    Setting an Edition Opener 
  669.    Calling an Edition Opener Procedure 
  670.    Opening and Closing Editions 
  671.    Listing Files That Can Be Subscribed To 
  672.    Reading From and Writing to Files 
  673.    Calling a Format I/O Procedure 
  674.  Edition Manager Routines 
  675.    Initializing the Edition Manager 
  676.    Creating and Registering a Section 
  677.    Creating and Deleting an Edition Container 
  678.    Setting and Locating a Format Mark 
  679.    Reading in Edition Data 
  680.    Writing out Edition Data 
  681.    Closing an Edition After Reading or Writing 
  682.    Displaying Dialog Boxes 
  683.    Locating a Publisher and Edition From a Subscriber 
  684.    Edition Container Formats 
  685.    Reading and Writing Non-Edition Files 
  686.  Summary of the Edition Manager 
  687.    Constants 
  688.    Data Types 
  689.    Routines 
  690.    Result Codes 
  691. æC card 167
  692. card 168
  693. card 169
  694. card 170
  695. card 171
  696. card 172
  697. card 173
  698. card 174
  699. card 175
  700. card 176
  701. card 177
  702. card 178
  703. card 179
  704. card 180
  705. card 181
  706. card 182
  707. card 183
  708. card 184
  709. card 185
  710. card 186
  711. card 187
  712. card 188
  713. card 189
  714. card 190
  715. card 191
  716. card 192
  717. card 193
  718. card 194
  719. card 195
  720. card 196
  721. card 197
  722. card 198
  723. card 199
  724. card 200
  725. card 201
  726. card 202
  727. card 203
  728. card 204
  729. card 205
  730. card 206
  731. card 207
  732. card 208
  733. card 209
  734. card 210
  735. card 211
  736. card 212
  737. card 213
  738. card 214
  739. card 215
  740. card 216
  741. card 217
  742. card 218
  743. card 219
  744. card 220
  745. card 221
  746. card 222
  747. card 223
  748. card 224
  749. card 225
  750. card 226
  751. æKY Edition Manager.Figures
  752. æN  Figure 4-1  The default edition icon 
  753.  Figure 4-2  A publisher, an edition, and a subscriber 
  754.  Figure 4-3  The publisher dialog box 
  755.  Figure 4-4  The subscriber dialog box 
  756.  Figure 4-5  A document and its corresponding editions 
  757.  Figure 4-6  Publisher and subscriber borders 
  758.  Figure 4-7  Edition Manager commands in the Edit menu 
  759.  Figure 4-8  Edition Manager commands under Publishing 
  760.  Figure 4-9  A document with a publisher & subscriber & its resource fork 
  761.  Figure 4-10  The new publisher alert box 
  762.  Figure 4-11  A sample publisher dialog box 
  763.  Figure 4-12  A sample subscriber dialog box 
  764.  Figure 4-13  Publisher update mode set to On Save 
  765.  Figure 4-14  Publisher update mode set to Manually 
  766.  Figure 4-15  Subscriber update mode set to Automatically 
  767.  Figure 4-16  Subscriber update mode set to Manually 
  768.  Figure 4-17  Edit menu with Show/Hide Borders menu command 
  769.  Figure 4-18  Publisher borders 
  770.  Figure 4-19  Subscriber borders 
  771.  Figure 4-20  A publisher with contents removed 
  772.  Figure 4-21  A publisher border within a spreadsheet document 
  773.  Figure 4-22  A publisher border with resize handles 
  774.  Figure 4-23  A publisher and subscriber with clipped graphics 
  775.  Figure 4-24  Creating multiple publishers alert box 
  776.  Figure 4-25  Saving multiple publishers alert box 
  777.  Figure 4-26  Subscribing directly to a 'PICT' file 
  778. æC line 16 of card 169
  779. line 21 of card 169
  780. line 30 of card 169
  781. line 48 of card 169
  782. line 65 of card 169
  783. line 74 of card 169
  784. line 93 of card 169
  785. line 102 of card 169
  786. line 13 of card 172
  787. line 5 of card 173
  788. line 10 of card 181
  789. line 7 of card 184
  790. line 10 of card 187
  791. line 16 of card 187
  792. line 24 of card 187
  793. line 30 of card 187
  794. line 5 of card 193
  795. line 20 of card 193
  796. line 25 of card 193
  797. line 13 of card 194
  798. line 3 of card 195
  799. line 5 of card 196
  800. line 12 of card 196
  801. line 5 of card 198
  802. line 10 of card 198
  803. line 11 of card 202
  804. æKY Edition Manager.Listings
  805. æN  Listing 4-1  Accepting Section Read events and verifying if a section is registered 
  806.  Listing 4-2  Saving a document containing sections 
  807.  Listing 4-3  Opening a document containing sections 
  808.  Listing 4-4  Creating a publisher 
  809.  Listing 4-5  Writing data to an edition 
  810.  Listing 4-6  Creating a subscriber 
  811.  Listing 4-7  Reading in edition data 
  812.  Listing 4-8  Responding to action codes 
  813.  Listing 4-9  Using your own edition opener function 
  814. æC line 44 of card 171
  815. line 19 of card 173
  816. line 27 of card 174
  817. line 24 of card 182
  818. line 16 of card 183
  819. line 66 of card 184
  820. line 15 of card 186
  821. line 67 of card 187
  822. line 119 of card 205
  823. æKY Event Manager.Sections
  824. æN  About This Chapter 
  825.  About the Event Manager 
  826.  Introduction to Events 
  827.    Low-Level Events 
  828.    Operating-System Events 
  829.    High-Level Events 
  830.  Event Processing 
  831.    The Event Loop 
  832.    Event Masks 
  833.    Switching Contexts 
  834.    Specifying Memory Requirements and Scheduling Options 
  835.      The Structure of a 'SIZE' Resource 
  836.      Creating a 'SIZE' Resource 
  837.  Using the Event Manager 
  838.    Receiving Low-Level Events  
  839.    Responding to Operating-System Events 
  840.    Receiving High-Level Events  
  841.    Identifying High-Level Event Senders and Receivers 
  842.    Sending High-Level Events 
  843.    Requesting Return Receipts 
  844.    Responding to Events From Other Applications 
  845.    Searching for a Specific High-Level Event 
  846.  Event Manager Routines 
  847.    Receiving Events 
  848.    Sending Events 
  849.    Receiving a Specific High-Level Event 
  850.    Converting Process Serial Numbers and Port Names 
  851.  Summary of the Event Manager 
  852.    Constants 
  853.    Data Types 
  854.    Routines 
  855.    Result Codes 
  856. æC card 227
  857. card 228
  858. card 229
  859. card 230
  860. card 231
  861. card 232
  862. card 233
  863. card 234
  864. card 235
  865. card 236
  866. card 237
  867. card 238
  868. card 239
  869. card 240
  870. card 241
  871. card 242
  872. card 243
  873. card 244
  874. card 245
  875. card 246
  876. card 247
  877. card 248
  878. card 249
  879. card 250
  880. card 251
  881. card 252
  882. card 253
  883. card 254
  884. card 255
  885. card 256
  886. card 257
  887. card 258
  888. æKY Event Manager.Figures
  889. æN  Figure 5-1  Events in a single application environment 
  890.  Figure 5-2  Events in a multi-application environment 
  891.  Figure 5-3  Events in system software version 7.0 
  892. æC line 12 of card 230
  893. line 5 of card 231
  894. line 8 of card 232
  895. æKY Event Manager.Listings
  896. æN  Listing 5-1  A simple event loop 
  897.  Listing 5-2  Processing events 
  898.  Listing 5-3  A template for a 'SIZE' resource 
  899.  Listing 5-4  The Rez input for a sample 'SIZE' resource 
  900.  Listing 5-5  Posting a high-level event by application signature 
  901.  Listing 5-6  Using the PPCBrowser function to post a high-level event  
  902.  Listing 5-7  Accepting a high-level event 
  903. æC line 6 of card 234
  904. line 29 of card 234
  905. line 13 of card 238
  906. line 158 of card 238
  907. line 23 of card 245
  908. line 74 of card 245
  909. line 9 of card 247
  910. æKY Apple Event Manager.Sections
  911. æN  About This Chapter 
  912.  About the Apple Event Manager 
  913.  Introduction to Apple Events 
  914.    Types of Apple Events 
  915.    Components of Apple Events 
  916.    Data Structures Within Apple Events 
  917.    Responding to Apple Events 
  918.    Requesting Services Through Apple Events 
  919.  Using the Apple Event Manager 
  920.    Accepting an Apple Event 
  921.    Installing Entries Into the Apple Event Dispatch Tables 
  922.    Handling the Required Apple Events 
  923.      Required Apple Events 
  924.      Handling the Open Application Event 
  925.      Handling the Open Documents Event 
  926.      Handling the Print Documents Event 
  927.      Handling the Quit Application Event 
  928.      Handling Apple Events Sent by the Edition Manager 
  929.      Handling the Create Publisher Event 
  930.    Getting Data out of an Apple Event 
  931.      Getting Data out of a Parameter 
  932.      Getting Data out of an Attribute 
  933.      Getting Data out of a Descriptor List 
  934.    Writing Apple Event Handlers 
  935.    Replying to an Apple Event 
  936.    Disposing of Apple Event Data Structures 
  937.    Interacting With the User 
  938.    Creating an Apple Event 
  939.      Adding Parameters to an Apple Event 
  940.      Specifying a Target Address 
  941.    Sending an Apple Event 
  942.    Dealing With Timeouts 
  943.    Writing an Idle Function 
  944.    Writing a Reply Filter Function 
  945.    Writing and Installing Coercion Handlers 
  946.    The Application Died Event 
  947.  Apple Event Manager Routines 
  948.    Creating and Managing the Apple Event Dispatch Tables 
  949.    Dispatching Apple Events 
  950.    Getting Parameters and Attributes From Apple Events 
  951.    Counting the Items in Descriptor Lists 
  952.    Getting Items From Descriptor Lists 
  953.    Getting Data From AE Records 
  954.    Requesting User Interaction 
  955.    Requesting More Time to Respond to Apple Events 
  956.    Suspending and Resuming Apple Event Handling 
  957.    Creating Apple Events 
  958.    Creating and Duplicating Descriptor Records 
  959.    Creating Descriptor Lists and AE Records 
  960.    Adding Items to Descriptor Lists 
  961.    Adding Data to AE Records  
  962.    Adding Parameters and Attributes to Apple Events 
  963.    Sending Apple Events 
  964.    Getting the Sizes and Descriptor Types 
  965.    Deleting Descriptor Records 
  966.    Deallocating Memory for Descriptor Records 
  967.    Coercing Descriptor Types 
  968.    Creating and Managing the Coercion Handler Tables 
  969.    Creating and Managing the Special Handler Tables 
  970.  Summary of the Apple Event Manager 
  971.    Constants 
  972.    Data Types 
  973.    Routines 
  974.    Result Codes 
  975.    Assembly-Language Information 
  976. æC card 259
  977. card 260
  978. card 261
  979. card 262
  980. card 263
  981. card 264
  982. card 265
  983. card 266
  984. card 267
  985. card 268
  986. card 269
  987. card 270
  988. card 271
  989. card 272
  990. card 273
  991. card 274
  992. card 275
  993. card 276
  994. card 277
  995. card 278
  996. card 279
  997. card 280
  998. card 281
  999. card 282
  1000. card 283
  1001. card 284
  1002. card 285
  1003. card 286
  1004. card 287
  1005. card 288
  1006. card 289
  1007. card 290
  1008. card 291
  1009. card 292
  1010. card 293
  1011. card 294
  1012. card 295
  1013. card 296
  1014. card 297
  1015. card 298
  1016. card 299
  1017. card 300
  1018. card 301
  1019. card 302
  1020. card 303
  1021. card 304
  1022. card 305
  1023. card 306
  1024. card 307
  1025. card 308
  1026. card 309
  1027. card 310
  1028. card 311
  1029. card 312
  1030. card 313
  1031. card 314
  1032. card 315
  1033. card 316
  1034. card 317
  1035. card 318
  1036. card 319
  1037. card 320
  1038. card 321
  1039. card 322
  1040. card 323
  1041. æKY Apple Event Manager.Figures
  1042. æN  Figure 6-1  An Open Documents event 
  1043.  Figure 6-2  Major components of an Open Documents event 
  1044.  Figure 6-3  A descriptor record with event class data 
  1045.  Figure 6-4  A keyword-specified descriptor record 
  1046.  Figure 6-5  A descriptor list for a list of aliases 
  1047.  Figure 6-6  Data structures within an Open Documents event 
  1048.  Figure 6-7  Accepting and processing an Open Documents event 
  1049.  Figure 6-8  Handler for an Open Documents event 
  1050.  Figure 6-9  Responding to an Open Documents event 
  1051. æC line 7 of card 261
  1052. line 39 of card 263
  1053. line 56 of card 264
  1054. line 116 of card 264
  1055. line 126 of card 264
  1056. line 145 of card 264
  1057. line 28 of card 265
  1058. line 35 of card 265
  1059. line 133 of card 265
  1060. æKY Apple Event Manager.Tables
  1061. æN  Table 6-1  Coercion handling provided by the Apple Event Manager 
  1062. æC line 63 of card 293
  1063. æKY Apple Event Manager.Listings
  1064. æN  Listing 6-1  A DoEvent procedure 
  1065.  Listing 6-2  A DoHighLevelEvent procedure for handling Apple events and  
  1066.  Listing 6-3  Inserting entries for required Apple events into an application’s  
  1067.  Listing 6-4  Inserting entries for Apple events sent by the Edition Manager into 
  1068.  Listing 6-5  A handler for the Open Application event 
  1069.  Listing 6-6  A handler for the Open Documents event 
  1070.  Listing 6-7  A handler for the Print Documents event 
  1071.  Listing 6-8  A handler for the Quit Application event 
  1072.  Listing 6-9  A handler for the Create Publisher event 
  1073.  Listing 6-10  Extracting items from a descriptor list 
  1074.  Listing 6-11  A function that checks for a keyMissedKeywordAttr attribute 
  1075.  Listing 6-12  Adding the keyErrorString parameter to the reply Apple event 
  1076.  Listing 6-13  Adding parameters to the reply Apple event 
  1077.  Listing 6-14  Using the AEInteractWithUser function 
  1078.  Listing 6-15  Creating a target address 
  1079.  Listing 6-16  Specifying a target address in an Apple event 
  1080.  Listing 6-17  Sending an Apple event 
  1081.  Listing 6-18  An idle function 
  1082. æC line 20 of card 268
  1083. line 41 of card 268
  1084. line 22 of card 269
  1085. line 66 of card 269
  1086. line 8 of card 272
  1087. line 6 of card 273
  1088. line 7 of card 274
  1089. line 6 of card 275
  1090. line 39 of card 277
  1091. line 47 of card 281
  1092. line 16 of card 282
  1093. line 21 of card 283
  1094. line 48 of card 283
  1095. line 110 of card 285
  1096. line 25 of card 288
  1097. line 57 of card 288
  1098. line 64 of card 289
  1099. line 35 of card 291
  1100. æKY Program-To-Program Communications Toolbox.Sections
  1101. æN  About This Chapter 
  1102.  About the PPC Toolbox 
  1103.  Ports, Sessions, and Message Blocks 
  1104.  Setting up Authenticated Sessions 
  1105.  Using the PPC Toolbox 
  1106.    PPC Toolbox Calling Conventions 
  1107.    Specifying Port Names and Location Names 
  1108.      Opening a Port 
  1109.      Browsing for Ports Using the Program Linking Dialog Box 
  1110.      Obtaining a List of Available Ports 
  1111.    Preparing for a Session 
  1112.      Initiating a PPC Session 
  1113.      Receiving Session Requests 
  1114.      Accepting or Rejecting Session Requests 
  1115.    Exchanging Data During a PPC Session 
  1116.      Reading Data From an Application 
  1117.      Sending Data to an Application 
  1118.    Ending a Session and Closing a Port 
  1119.    Invalidating Users 
  1120.  PPC Toolbox Routines 
  1121.    The PPC Toolbox Parameter Block & Completion Routine 
  1122.    Initializing the PPC Toolbox 
  1123.    Using the Program Linking Dialog Box 
  1124.    Obtaining a List of Ports 
  1125.    Opening and Closing a Port 
  1126.    Starting and Ending a Session 
  1127.    Receiving, Accepting, and Rejecting a Session 
  1128.    Reading and Writing Data 
  1129.    Locating a Default User and Invalidating a User 
  1130.  Summary of the PCC Toolbox 
  1131.    Constants 
  1132.    Data types 
  1133.    Routines 
  1134.    Result Codes 
  1135.    Assembly-Language Information 
  1136. æC card 324
  1137. card 325
  1138. card 326
  1139. card 327
  1140. card 328
  1141. card 329
  1142. card 330
  1143. card 331
  1144. card 332
  1145. card 333
  1146. card 334
  1147. card 335
  1148. card 336
  1149. card 337
  1150. card 338
  1151. card 339
  1152. card 340
  1153. card 341
  1154. card 342
  1155. card 343
  1156. card 344
  1157. card 345
  1158. card 346
  1159. card 347
  1160. card 348
  1161. card 349
  1162. card 350
  1163. card 351
  1164. card 352
  1165. card 353
  1166. card 354
  1167. card 355
  1168. card 356
  1169. card 357
  1170. card 358
  1171. æKY Program-To-Program Communications Toolbox.Figures
  1172. æN  Figure 7-1  A PPC Toolbox session between two applications 
  1173.  Figure 7-2  The Sharing Setup icon 
  1174.  Figure 7-3  The Sharing Setup control panel 
  1175.  Figure 7-4  The session termination alert box 
  1176.  Figure 7-5  The users and groups dialog box 
  1177.  Figure 7-6  The user termination alert box 
  1178.  Figure 7-7  The guest dialog box 
  1179.  Figure 7-8  The PPC Toolbox authentication process 
  1180.  Figure 7-9  Database and spreadsheet applications using the PPC Toolbox 
  1181.  Figure 7-10  Two Macintosh applications and their corresponding ports 
  1182.  Figure 7-11  The PPC Toolbox and a dictionary service application 
  1183.  Figure 7-12  The program linking dialog box 
  1184.  Figure 7-13  The program linking dialog box without a zone list 
  1185.  Figure 7-14  The user identity dialog box 
  1186.  Figure 7-15  The incorrect password dialog box 
  1187.  Figure 7-16  The invalid user name dialog box 
  1188.  Figure 7-17  Transmitting message blocks 
  1189.  Figure 7-18  The PPC Toolbox parameter blocks 
  1190. æC line 14 of card 326
  1191. line 3 of card 327
  1192. line 8 of card 327
  1193. line 15 of card 327
  1194. line 26 of card 327
  1195. line 31 of card 327
  1196. line 36 of card 327
  1197. line 45 of card 327
  1198. line 88 of card 328
  1199. line 9 of card 330
  1200. line 3 of card 331
  1201. line 10 of card 332
  1202. line 15 of card 332
  1203. line 16 of card 335
  1204. line 25 of card 335
  1205. line 32 of card 335
  1206. line 5 of card 338
  1207. line 28 of card 344
  1208. æKY Program-To-Program Communications Toolbox.Listings
  1209. æN  Listing 7-1  Initializing the PPC Toolbox using the PPCInit function 
  1210.  Listing 7-2  Opening a PPC port 
  1211.  Listing 7-3  Using a port filter function 
  1212.  Listing 7-4  Browsing through dictionary service ports 
  1213.  Listing 7-5  Using the IPCListPorts function to obtain a list of ports  
  1214.  Listing 7-6  Using the StartSecureSession function to establish a session 
  1215.  Listing 7-7  Initiating a session using the PPCStart function 
  1216.  Listing 7-8  Using the PPCInform function to enable a port to receive sessions 
  1217.  Listing 7-9  Completion routine for a PPCInform function 
  1218.  Listing 7-10  Accepting a session request using the PPCAccept function 
  1219.  Listing 7-11  Completion routine for a PPCAccept function 
  1220.  Listing 7-12  Rejecting a session request using the PPCReject function 
  1221.  Listing 7-13  Completion routine for a PPCReject function 
  1222.  Listing 7-14  Using the PPCRead function to read data during a session 
  1223.  Listing 7-15  Polling the ioResult field to determine if a PPCRead function has completed 
  1224.  Listing 7-16  Using the PPCWrite function to write data during a session 
  1225.  Listing 7-17  Polling the ioResult field to determine if a PPCWrite function has completed 
  1226.  Listing 7-18  Ending a PPC session using the PPCEnd function 
  1227.  Listing 7-19  Closing a PPC port using the PPCClose function 
  1228.  Listing 7-20  Using the DeleteUserIdentity function to invalidate a user identity 
  1229. æC line 41 of card 328
  1230. line 6 of card 331
  1231. line 40 of card 332
  1232. line 74 of card 332
  1233. line 7 of card 333
  1234. line 44 of card 335
  1235. line 110 of card 335
  1236. line 6 of card 336
  1237. line 37 of card 336
  1238. line 13 of card 337
  1239. line 32 of card 337
  1240. line 51 of card 337
  1241. line 72 of card 337
  1242. line 10 of card 339
  1243. line 33 of card 339
  1244. line 8 of card 340
  1245. line 35 of card 340
  1246. line 6 of card 341
  1247. line 26 of card 341
  1248. line 14 of card 342
  1249. æKY Data Access Manager.Sections
  1250. æN  About This Chapter 
  1251.  About the Data Access Manager 
  1252.    The High-Level Interface 
  1253.      Sending a Query Through the High-Level Interface 
  1254.      Retrieving Data Through the High-Level Interface 
  1255.    The Low-Level Interface 
  1256.      Sending a Query Through the Low-Level Interface 
  1257.      Retrieving Data Through the Low-Level Interface 
  1258.    Comparison of the High-Level and Low-Level Interfaces 
  1259.  Using the Data Access Manager  
  1260.    Executing Routines Asynchronously 
  1261.    General Guidelines for the User Interface 
  1262.      Keep the User in Control  
  1263.      Provide Feedback to the User  
  1264.    Using the High-Level Interface 
  1265.    Writing a Status Routine for High-Level Functions 
  1266.    Using the Low-Level Interface 
  1267.    Getting Information About Sessions in Progress 
  1268.    Processing Query Results 
  1269.      Getting Query Results 
  1270.      Converting Query Results to Text 
  1271.  Creating a Query Document 
  1272.    User Interface Guidelines for Query Documents  
  1273.    Contents of a Query Document 
  1274.    Query Records and Query Resources 
  1275.      Query Records 
  1276.      Query Resources 
  1277.    Writing a Query Definition Function 
  1278.  Data Access Manager Routines  
  1279.    Asynchronous Execution of Routines 
  1280.    Initializing the Data Access Manager 
  1281.    High-Level Interface 
  1282.      Handling Query Documents 
  1283.      Handling Query Results 
  1284.    Low-Level Interface  
  1285.      Controlling the Session  
  1286.      Sending and Executing Queries 
  1287.      Retrieving Results 
  1288.    Installing and Removing Result Handlers 
  1289.  Summary of the Data Access Manager 
  1290.    Constants 
  1291.    Data Types 
  1292.    Routines 
  1293.    Result Codes 
  1294.    Assembly-Language Information 
  1295. æC card 359
  1296. card 360
  1297. card 361
  1298. card 362
  1299. card 363
  1300. card 364
  1301. card 365
  1302. card 366
  1303. card 367
  1304. card 368
  1305. card 369
  1306. card 370
  1307. card 371
  1308. card 372
  1309. card 373
  1310. card 374
  1311. card 375
  1312. card 376
  1313. card 377
  1314. card 378
  1315. card 379
  1316. card 380
  1317. card 381
  1318. card 382
  1319. card 383
  1320. card 384
  1321. card 385
  1322. card 386
  1323. card 387
  1324. card 388
  1325. card 389
  1326. card 390
  1327. card 391
  1328. card 392
  1329. card 393
  1330. card 394
  1331. card 395
  1332. card 396
  1333. card 397
  1334. card 398
  1335. card 399
  1336. card 400
  1337. card 401
  1338. card 402
  1339. card 403
  1340. æKY Data Access Manager.Figures
  1341. æN  Figure 8-1  A connection with a database 
  1342.  Figure 8-2  Using high-level Data Access Manager routines 
  1343.  Figure 8-3  Using low-level Data Access Manager routines 
  1344.  Figure 8-4  A flowchart of a session using the high-level interface 
  1345.  Figure 8-5  A flowchart of a session using the low-level interface 
  1346.  Figure 8-6  A query document dialog box 
  1347.  Figure 8-7  Function of a query document 
  1348. æC line 9 of card 360
  1349. line 25 of card 361
  1350. line 21 of card 364
  1351. line 7 of card 373
  1352. line 7 of card 375
  1353. line 23 of card 382
  1354. line 33 of card 382
  1355. æKY Data Access Manager.Tables
  1356. æN  Table 8-1  Data types defined by the Data Access Manager 
  1357. æC line 42 of card 378
  1358. æKY Data Access Manager.Listings
  1359. æN  Listing 8-1  Using the high-level interface 
  1360.  Listing 8-2  A sample status routine 
  1361.  Listing 8-3  Sending a query fragment 
  1362.  Listing 8-4  Using the low-level interface 
  1363.  Listing 8-5  A result handler 
  1364.  Listing 8-6  A query definition function 
  1365. æC line 128 of card 373
  1366. line 185 of card 374
  1367. line 86 of card 375
  1368. line 171 of card 375
  1369. line 62 of card 379
  1370. line 25 of card 386
  1371. æKY Finder Interface.Sections
  1372. æN  About This Chapter 
  1373.  About the Finder Interface 
  1374.  Finder-Related Resources 
  1375.    Creators, File Types, and the Signature Resource 
  1376.    Icon Resources 
  1377.    File Reference Resources 
  1378.    The Bundle Resource 
  1379.    The Size Resource 
  1380.    Messages When the Finder Can’t Find Your Application 
  1381.    Version Resources 
  1382.    How and When the Finder Launches Your Application 
  1383.  Finder-Related Changes to User Interface 
  1384.    Stationery Pads 
  1385.    Edition Icons 
  1386.    Customized Icons 
  1387.    Aliases 
  1388.      Resolving Alias Files 
  1389.    Desk Accessories 
  1390.    Fonts, Sounds, and Other Movable Resources 
  1391.    Balloon Help for Icons 
  1392.  Finder Information in the Volume Catalog 
  1393.  The System Folder & Related Directories 
  1394.    Folder Organization 
  1395.    Finding Directories 
  1396.  The Desktop Database 
  1397.    History of the Desktop Database 
  1398.    Using the Desktop Database 
  1399.    Desktop Manager Routines 
  1400.      Locating and Opening the Desktop Database 
  1401.      Reading the Desktop Database 
  1402.      Adding to the Desktop Database 
  1403.      Deleting Entries From the Desktop Database 
  1404.      Manipulating the Desktop Database Itself 
  1405.  Summary of the Finder Interface 
  1406.    Constants 
  1407.    Data Types 
  1408.    Routines 
  1409.    Result Codes 
  1410.    Assembly-Language Information 
  1411. æC card 404
  1412. card 405
  1413. card 406
  1414. card 407
  1415. card 408
  1416. card 409
  1417. card 410
  1418. card 411
  1419. card 412
  1420. card 413
  1421. card 414
  1422. card 415
  1423. card 416
  1424. card 417
  1425. card 418
  1426. card 419
  1427. card 420
  1428. card 421
  1429. card 422
  1430. card 423
  1431. card 424
  1432. card 425
  1433. card 426
  1434. card 427
  1435. card 428
  1436. card 429
  1437. card 430
  1438. card 431
  1439. card 432
  1440. card 433
  1441. card 434
  1442. card 435
  1443. card 436
  1444. card 437
  1445. card 438
  1446. card 439
  1447. card 440
  1448. card 441
  1449. card 442
  1450. æKY Finder Interface.Figures
  1451. æN  Figure 9-1  Default large black-and-white icons 
  1452.  Figure 9-2  An application icon and its mask 
  1453.  Figure 9-3  The ResEdit view of an icon and its mask 
  1454.  Figure 9-4  Examples of document icons 
  1455.  Figure 9-5  Linking 'ICN#' and 'FREF' resources in a 'BNDL' resource 
  1456.  Figure 9-6  The default application-unavailable alert box 
  1457.  Figure 9-7  Application-unavailable box specifying an application’s name 
  1458.  Figure 9-8  Application-unavailable alert box with a customized message 
  1459.  Figure 9-9  Application-unavailable box for 'TEXT' and 'PICT' documents 
  1460.  Figure 9-10  The version data in the information window 
  1461.  Figure 9-11  Default and customized help balloons for application icons 
  1462.  Figure 9-12  The System Folder and related folders 
  1463. æC line 35 of card 408
  1464. line 42 of card 408
  1465. line 47 of card 408
  1466. line 105 of card 408
  1467. line 60 of card 410
  1468. line 5 of card 412
  1469. line 23 of card 412
  1470. line 40 of card 412
  1471. line 45 of card 412
  1472. line 35 of card 413
  1473. line 5 of card 423
  1474. line 13 of card 425
  1475. æKY Finder Interface.Listings
  1476. æN  Listing 9-1  'ICN#' resources for an application and its documents 
  1477.  Listing 9-2  Using file reference resources 
  1478.  Listing 9-3  Using a bundle resource 
  1479.  Listing 9-4  Using the ResolveAliasFile function to open a file 
  1480.  Listing 9-5  Creating a help balloon resource for an application icon 
  1481. æC line 53 of card 408
  1482. line 6 of card 409
  1483. line 21 of card 410
  1484. line 63 of card 420
  1485. line 11 of card 423
  1486. æKY Control Panels.Sections
  1487. æN  About This Chapter 
  1488.  About Control Panels 
  1489.  Writing Control Panel Files 
  1490.  About the Monitors Control Panel 
  1491.  Designing an Extension  
  1492.    The 'card' Resource 
  1493.    The 'mntr' Resource 
  1494.      The Monitor Function 
  1495.      Messages to the Monitor Function 
  1496.    The 'RECT' Resource 
  1497.    The 'DITL' Resource 
  1498.    The 'ICON' and 'cicn' Resources 
  1499.    The 'vers' Resources 
  1500.    The 'STR#' Resource 
  1501.    The 'gama' Resources 
  1502.    The 'FREF', 'BNDL', Icon Family, & Signature Resources 
  1503.    The 'INIT' Resource 
  1504.    A Sample of an Extension to the Monitors Control Panel 
  1505.  Adding a Monitors Extension File 
  1506.  Summary of the Monitors Extension File  
  1507.    Constants 
  1508.    Application-Defined Routine 
  1509. æC card 443
  1510. card 444
  1511. card 445
  1512. card 446
  1513. card 447
  1514. card 448
  1515. card 449
  1516. card 450
  1517. card 451
  1518. card 452
  1519. card 453
  1520. card 454
  1521. card 455
  1522. card 456
  1523. card 457
  1524. card 458
  1525. card 459
  1526. card 460
  1527. card 461
  1528. card 462
  1529. card 463
  1530. card 464
  1531. æKY Control Panels.Figures
  1532. æN  Figure 10-1  The Monitors control panel 
  1533.  Figure 10-2  An Options dialog box for a Monitors control panel 
  1534.  Figure 10-3  An Options dialog box with superuser controls 
  1535. æC line 18 of card 446
  1536. line 23 of card 446
  1537. line 6 of card 453
  1538. æKY Control Panels.Listings
  1539. æN  Listing 10-1  Sample of an extension to the Monitors control panel 
  1540.  Listing 10-2  Resources for a file that extends the Monitors control panel 
  1541. æC line 10 of card 460
  1542. line 365 of card 460
  1543. æKY Help Manager.Sections
  1544. æN  About This Chapter 
  1545.  About the Help Manager 
  1546.    Help Balloon Display 
  1547.    Default Help Balloons for Menus, Windows, and Icons 
  1548.  Using the Help Manager 
  1549.    Providing Text or Pictures for Help Balloons 
  1550.      Defining the Help Balloon Content 
  1551.      Using Clear, Concise Phrases 
  1552.      Using Active Constructions 
  1553.      Using Parallel Structure 
  1554.      Using Consistent Terminology 
  1555.      Defining the Help Balloon Position 
  1556.    Specifying the Format for Help Balloon Content 
  1557.    Specifying Options in Help Resources 
  1558.    Providing Help Balloons for Menus 
  1559.    Providing Help Balloons in Dialog Boxes & Alert Boxes 
  1560.    Providing Help Balloons for Window Content 
  1561.      Help Balloons in Static Windows 
  1562.      Help Balloons in Dynamic Windows 
  1563.    Overriding Help Balloons for Application Icons 
  1564.    Overriding Other Default Help Balloons 
  1565.    Adding Your Own Menu Items to the Help Menu 
  1566.    Writing Your Own Balloon Definition Function 
  1567.  Help Manager Routines  
  1568.    Determining Whether Help Is Enabled 
  1569.    Determining Whether a Help Balloon Is Showing 
  1570.    Displaying and Removing Help Balloons 
  1571.      Displaying a Help Balloon 
  1572.      Using Your Own Menu Definition Procedure 
  1573.      Removing a Help Balloon 
  1574.      Using Your Own Tip Function 
  1575.    Adding Items to the Help Menu 
  1576.    Getting and Setting the Font Name and Size 
  1577.    Getting and Setting Information for Help Resources 
  1578.    Getting the Dimensions of a Help Balloon 
  1579.    Getting the Content of a Help Balloon 
  1580.  Summary of the Help Manager  
  1581.    Constants 
  1582.    Data Types 
  1583.    Routines 
  1584.    Result Codes 
  1585.    Assembly-Language Information 
  1586. æC card 465
  1587. card 466
  1588. card 467
  1589. card 468
  1590. card 469
  1591. card 470
  1592. card 471
  1593. card 472
  1594. card 473
  1595. card 474
  1596. card 475
  1597. card 476
  1598. card 477
  1599. card 478
  1600. card 479
  1601. card 481
  1602. card 482
  1603. card 483
  1604. card 484
  1605. card 485
  1606. card 486
  1607. card 487
  1608. card 488
  1609. card 489
  1610. card 490
  1611. card 491
  1612. card 492
  1613. card 493
  1614. card 494
  1615. card 495
  1616. card 496
  1617. card 497
  1618. card 498
  1619. card 499
  1620. card 500
  1621. card 501
  1622. card 502
  1623. card 503
  1624. card 504
  1625. card 505
  1626. card 506
  1627. card 507
  1628. æKY Help Manager.Figures
  1629. æN  Figure 11-1  The Help menu for the Finder 
  1630.  Figure 11-2  A help balloon 
  1631.  Figure 11-3  The tip and hot rectangle for a help balloon 
  1632.  Figure 11-4  Standard balloon positions and their variation codes 
  1633.  Figure 11-5  Alternate positions of a help balloon 
  1634.  Figure 11-6  Default help balloons for the window frame 
  1635.  Figure 11-7  Default help balloons for the Apple and Help menus 
  1636.  Figure 11-8  Default help balloons for application and document icons 
  1637.  Figure 11-9  Help balloons for different states of the Cut command 
  1638.  Figure 11-10  Help balloons for a changing menu item 
  1639.  Figure 11-11  A help balloon in a modal dialog box 
  1640.  Figure 11-12  Static and dynamic windows 
  1641.  Figure 11-13  A tool palette with a help balloon 
  1642.  Figure 11-14  A help balloon for a dialog box with a title 
  1643.  Figure 11-15  Default and customized help balloons for an application icon 
  1644.  Figure 11-16  The Help menu with two appended menu items 
  1645. æC line 17 of card 466
  1646. line 23 of card 467
  1647. line 30 of card 467
  1648. line 41 of card 467
  1649. line 53 of card 467
  1650. line 45 of card 468
  1651. line 58 of card 468
  1652. line 65 of card 468
  1653. line 37 of card 479
  1654. line 64 of card 479
  1655. line 223 of card 481
  1656. line 7 of card 482
  1657. line 137 of card 483
  1658. line 187 of card 483
  1659. line 52 of card 485
  1660. line 7 of card 487
  1661. æKY Help Manager.Listings
  1662. æN  Listing 11-1  A partial menu help resource 
  1663.  Listing 11-2  The missing items component in a menu help resource 
  1664.  Listing 11-3  Corresponding 'hmnu' and 'STR#' resources 
  1665.  Listing 11-4  Using HMCompareItem for a changing menu item 
  1666.  Listing 11-5  A dialog item list and its help resource 
  1667.  Listing 11-6  Corresponding 'hwin' and 'hrct' resources for a tool palette 
  1668.  Listing 11-7  Specifying help for windows with an 'hwin' resource 
  1669.  Listing 11-8  Using HMShowBalloon to display help balloons 
  1670.  Listing 11-9  Creating a help balloon resource for an application icon 
  1671.  Listing 11-10  Overriding default help balloons 
  1672.  Listing 11-11  A sample menu help resource for items in the Help menu 
  1673. æC line 85 of card 479
  1674. line 226 of card 479
  1675. line 321 of card 479
  1676. line 18 of card 479
  1677. line 124 of card 481
  1678. line 143 of card 483
  1679. line 193 of card 483
  1680. line 219 of card 484
  1681. line 59 of card 485
  1682. line 79 of card 486
  1683. line 36 of card 487
  1684. æKY Font Manager.Sections
  1685. æN  About This Chapter 
  1686.  About The Font Manager 
  1687.    Font Terminology 
  1688.    Font Measurements 
  1689.    Font Scaling 
  1690.    How the Font Manager Renders TrueType Fonts 
  1691.  Using the Font Manager 
  1692.    Adding Font Sizes and Names to the Menu 
  1693.    Storing a Font Name in a Document 
  1694.    Using TrueType Fonts in Preference to Bitmapped Fonts 
  1695.    Preserving the Glyph’s Shape 
  1696.  Font Manager Routines 
  1697.    Choosing TrueType Fonts Over Bitmapped Fonts 
  1698.    Scaling Fonts 
  1699.    Erasing the Font Manager’s Memory Caches 
  1700.  Summary of the Font Manager 
  1701.    Constants 
  1702.    Routines 
  1703. æC card 508
  1704. card 509
  1705. card 510
  1706. card 511
  1707. card 512
  1708. card 513
  1709. card 514
  1710. card 515
  1711. card 516
  1712. card 517
  1713. card 518
  1714. card 519
  1715. card 520
  1716. card 521
  1717. card 522
  1718. card 523
  1719. card 524
  1720. card 525
  1721. æKY Font Manager.Figures
  1722. æN  Figure 12-1  The standard Roman character set 
  1723.  Figure 12-2  Terms for font measurements 
  1724.  Figure 12-3  The ascent line and maximum y-value 
  1725.  Figure 12-4  A comparison of scaled TrueType and bitmapped fonts 
  1726.  Figure 12-5  A glyph stretched horizontally 
  1727.  Figure 12-6  A glyph stretched vertically 
  1728.  Figure 12-7  A glyph condensed horizontally 
  1729.  Figure 12-8  The effect of an off-curve point on two Bézier curves 
  1730.  Figure 12-9  An outline with points on and off the curve 
  1731.  Figure 12-10  A curve with consecutive off-curve points 
  1732.  Figure 12-11  An outline glyph 
  1733.  Figure 12-12  An unmodified outline glyph at a small point size 
  1734.  Figure 12-13  An instructed outline glyph 
  1735.  Figure 12-14  A sample Size menu and font size dialog box 
  1736.  Figure 12-15  The difference between a scaled glyph and a preserved glyph 
  1737. æC line 21 of card 510
  1738. line 3 of card 511
  1739. line 20 of card 511
  1740. line 5 of card 512
  1741. line 14 of card 512
  1742. line 21 of card 512
  1743. line 26 of card 512
  1744. line 13 of card 513
  1745. line 18 of card 513
  1746. line 23 of card 513
  1747. line 28 of card 513
  1748. line 39 of card 513
  1749. line 44 of card 513
  1750. line 30 of card 515
  1751. line 7 of card 518
  1752. æKY Font Manager.Listings
  1753. æN  Listing 12-1  Checking a font family ID against the font name  
  1754. æC line 6 of card 516
  1755. æKY Resource Manager.Sections
  1756. æN  About This Chapter 
  1757.  Resources  
  1758.    Resource Types 
  1759.    Resource IDs 
  1760.      Definition Procedures  
  1761.      Font Families and Scripts 
  1762.  Resources in the System File 
  1763.    System Icons 
  1764.      Document and Application Icons 
  1765.      Folder Icons 
  1766.      System Folder Icons 
  1767.      Desktop Icons 
  1768.      Standard File Package Icons 
  1769.    User Information Resources 
  1770.    Packages 
  1771.    Function Key Resources 
  1772.  Using the Resource Manager 
  1773.    Using Partial Resources 
  1774.    Creating and Opening Resource Files 
  1775.    Storing Fonts in a Resource Fork 
  1776.  Resource Manager Routines 
  1777.    Creating Resource Files 
  1778.    Opening Resource Files 
  1779.    Reading and Writing Partial Resources 
  1780.  Summary of the Resource Manager 
  1781.    Constants 
  1782.    Routines 
  1783.    Result Codes 
  1784.    Assembly-Language Information 
  1785. æC card 526
  1786. card 527
  1787. card 528
  1788. card 529
  1789. card 530
  1790. card 531
  1791. card 532
  1792. card 533
  1793. card 534
  1794. card 535
  1795. card 536
  1796. card 537
  1797. card 538
  1798. card 539
  1799. card 540
  1800. card 541
  1801. card 542
  1802. card 543
  1803. card 544
  1804. card 545
  1805. card 546
  1806. card 547
  1807. card 548
  1808. card 549
  1809. card 550
  1810. card 551
  1811. card 552
  1812. card 553
  1813. card 554
  1814. æKY Resource Manager.Tables
  1815. æN  Table 13-1  Resource types available for your application’s use 
  1816.  Table 13-2  Resource types reserved for the Operating System’s use 
  1817. æC line 7 of card 528
  1818. line 105 of card 528
  1819. æKY Resource Manager.Listings
  1820. æN  Listing 13-1  Using partial resource calls  
  1821. æC line 16 of card 543
  1822. æKY Worldwide Software Overview.Sections
  1823. æN  About this Chapter 
  1824.  About Worldwide Software 
  1825.    The Graphic Representation of Languages 
  1826.    Localized Versions of the Macintosh System Software 
  1827.    Multiple Script Systems and Multiple Languages  
  1828.    Identifying Scripts, Languages, and Regions 
  1829.    About the Script Management System 
  1830.    About the Script Manager 
  1831.      Local and Global Variables 
  1832.      Style Runs and Higher-Level Text Organization 
  1833.      Tokens 
  1834.      Date Conversion 
  1835.      Geographic Information 
  1836.      Number Conversion 
  1837.    About the International Utilities Package 
  1838.    About the International and Keyboard Resources 
  1839.    About the Macintosh Script Systems 
  1840.    Script Management System and Related Components 
  1841.      Worldwide Control Panels and Desk Accessory 
  1842.    Installing & Removing Script Systems, Keyboards & Fonts 
  1843.    Using the Keyboard Menu 
  1844.      Selecting Keyboard Layouts 
  1845.    Distinguishing Scripts 
  1846.    Keyboards 
  1847.    Fonts 
  1848.  Localization 
  1849.    Sorting 
  1850.      Primary or Secondary Order 
  1851.      Expansion 
  1852.      Contraction 
  1853.      Ignorable Characters 
  1854.      Exceptional Words 
  1855.    Formats 
  1856.      Date and Time 
  1857.      Currency and Measurement 
  1858.      Calendars 
  1859.      Numbers 
  1860.  An Introduction to Scripts 
  1861.    Character Representation 
  1862.    Text Direction 
  1863.    Contextual Forms 
  1864.    Diacritical Marks 
  1865.    Uppercase and Lowercase Characters 
  1866.    Character Reordering 
  1867.    Word Demarcation 
  1868.    Alignment and Justification of Text 
  1869.  Representing Scripts on the Macintosh 
  1870.    Character Set Encoding 
  1871.    Character Input 
  1872.    Composition Rules 
  1873.    Text Manipulation 
  1874.    Text Rendering 
  1875.  Using the Script Manager 
  1876.    Determining the Features of the Script Manager 
  1877.    Initializing the Script Manager 
  1878.    Creating Simple Script Systems 
  1879.    Calling the Script Manager 
  1880.  Overview of the Script Manager Routines 
  1881.    Checking and Modifying Global and Local Variables 
  1882.      Accepting Implicit Script Codes 
  1883.      Verbs for GetScript and SetScript 
  1884.      Verbs for GetEnvirons and SetEnvirons 
  1885.    Checking and Setting System Variables 
  1886.    Setting the Active Keyboard Script 
  1887.    Obtaining Script Information 
  1888.    Obtaining Character Information 
  1889.    Manipulating Text 
  1890.      Drawing and Editing Text 
  1891.      Formatting Text 
  1892.      Modifying Text 
  1893.      Substituting Text 
  1894.      Truncating Text 
  1895.    Lexically Interpreting Different Scripts 
  1896.    Date and Time Utilities 
  1897.      Converting Worldwide Dates and Times 
  1898.      Converting Long Dates 
  1899.      Modifying and Verifying Date and Time Records 
  1900.      Reading and Storing Locations 
  1901.    Number Utilities 
  1902.      Converting to and From Canonical Number Formats 
  1903.      Working With Formatted Numbers 
  1904.  Script Manager Routines 
  1905.    Localizing Word Selection and Line Break Tables 
  1906.      Defining Word Boundaries and Line Breaks 
  1907.      Determining Word Selection: An Example 
  1908.      Optimized Word Break Tables 
  1909.    Truncating Text 
  1910.    Substituting Text 
  1911.      Substituting and Truncating Text 
  1912.    Converting Case and Stripping Diacritical Marks 
  1913.    Handling Justified Text 
  1914.      Providing for Spacing Between Multiple Style Runs 
  1915.      Justifying Text on the Roman Script System 
  1916.  Using Intl Utilities Package Routines 
  1917.  International Utilities Routine Overview 
  1918.    Comparing Strings  
  1919.    Modifying the Standard  String Comparison  
  1920.    Facilitating Interscript Sorting Order 
  1921.    Accessing the International Resources 
  1922.    Localizing Dates, Times, and Metric Information 
  1923.  International Utilities Package Routines 
  1924.    Script and Language Codes 
  1925.    Manipulating the 'itl2' and 'itl4' Resources 
  1926.    Specifying Resource Handles Explicitly 
  1927.    Determining Interscript Sorting Order 
  1928.  Using Intl and Keyboard Resources 
  1929.    Enhancements to International Resources 
  1930.    The 'itlc' Resource 
  1931.    The 'itlm' Resource 
  1932.    The 'itlb' Resource 
  1933.    The 'itl0' Resource 
  1934.    The 'itl1' Resource 
  1935.    The 'itl2' Resource 
  1936.      The 'itl2' Resource Header 
  1937.    The 'itl4' Resource 
  1938.    Keyboard Types and Modifier Bits 
  1939.    The 'KCHR' Resource 
  1940.    The 'kcs#', 'kcs4', and 'kcs8' Resources 
  1941.    The 'KSWP' Resource 
  1942.    The 'itlk' Resource  
  1943.  Keys Caps and the 'KCAP' Resource 
  1944.    Dead-Key Feedback 
  1945.    The 'KCAP' Resource 
  1946.  Localizing to Other Languages and Regions 
  1947.    Using Resources 
  1948.    Text and Dialog Translation Tips 
  1949.    Adapting Text Operations 
  1950.    Using Fonts 
  1951.    Avoiding Special Character Codes as Delimiters 
  1952.    Using the Standard Roman Character Set  
  1953.    Adapting Keyboard Equivalents 
  1954.    Modifying the Representation of Dates, Times, & Numbers 
  1955.  Writing Software for Other Scripts  
  1956.    Working With Fonts  
  1957.    Working With Character Codes 
  1958.    Working With Text Direction  
  1959.    Synchronizing Keyboards and Fonts 
  1960.    Handling Numbers 
  1961.    Identifying Keywords and Tokens  
  1962.    Possible Printing Problems  
  1963.  Summary of the Script Manager 
  1964.    Constants 
  1965.    Data Types 
  1966.    Routines 
  1967.    Assembly-Language Information 
  1968.  Summary of the Intl Utilities Package 
  1969.    Constants 
  1970.    Data Types 
  1971.    Routines 
  1972.    Assembly-Language Information 
  1973.  Summary of International Resources 
  1974.    Data Types 
  1975. æC card 555
  1976. card 556
  1977. card 557
  1978. card 558
  1979. card 559
  1980. card 560
  1981. card 561
  1982. card 562
  1983. card 563
  1984. card 564
  1985. card 565
  1986. card 566
  1987. card 567
  1988. card 568
  1989. card 569
  1990. card 570
  1991. card 571
  1992. card 572
  1993. card 573
  1994. card 574
  1995. card 575
  1996. card 576
  1997. card 577
  1998. card 578
  1999. card 579
  2000. card 580
  2001. card 581
  2002. card 582
  2003. card 583
  2004. card 584
  2005. card 585
  2006. card 586
  2007. card 587
  2008. card 588
  2009. card 589
  2010. card 590
  2011. card 591
  2012. card 592
  2013. card 593
  2014. card 594
  2015. card 595
  2016. card 596
  2017. card 597
  2018. card 598
  2019. card 599
  2020. card 600
  2021. card 601
  2022. card 602
  2023. card 603
  2024. card 604
  2025. card 605
  2026. card 606
  2027. card 607
  2028. card 608
  2029. card 609
  2030. card 610
  2031. card 611
  2032. card 612
  2033. card 613
  2034. card 614
  2035. card 615
  2036. card 616
  2037. card 617
  2038. card 618
  2039. card 619
  2040. card 620
  2041. card 621
  2042. card 622
  2043. card 623
  2044. card 624
  2045. card 625
  2046. card 626
  2047. card 627
  2048. card 628
  2049. card 629
  2050. card 630
  2051. card 631
  2052. card 632
  2053. card 633
  2054. card 634
  2055. card 635
  2056. card 636
  2057. card 637
  2058. card 638
  2059. card 639
  2060. card 640
  2061. card 641
  2062. card 642
  2063. card 643
  2064. card 644
  2065. card 645
  2066. card 646
  2067. card 647
  2068. card 648
  2069. card 649
  2070. card 650
  2071. card 651
  2072. card 652
  2073. card 653
  2074. card 654
  2075. card 655
  2076. card 656
  2077. card 657
  2078. card 658
  2079. card 659
  2080. card 660
  2081. card 661
  2082. card 662
  2083. card 663
  2084. card 664
  2085. card 665
  2086. card 666
  2087. card 667
  2088. card 668
  2089. card 669
  2090. card 670
  2091. card 671
  2092. card 672
  2093. card 673
  2094. card 674
  2095. card 675
  2096. card 676
  2097. card 677
  2098. card 678
  2099. card 679
  2100. card 680
  2101. card 681
  2102. card 682
  2103. card 683
  2104. card 684
  2105. card 685
  2106. card 686
  2107. card 687
  2108. card 688
  2109. card 689
  2110. card 690
  2111. card 691
  2112. card 692
  2113. card 693
  2114. card 694
  2115. card 695
  2116. card 696
  2117. card 698
  2118. card 699
  2119. card 700
  2120. card 701
  2121. card 702
  2122. card 703
  2123. card 704
  2124. card 705
  2125. card 706
  2126. card 707
  2127. æKY Worldwide Software Overview.Figures
  2128. æN  Figure 14-1  The script, language, and region hierarchy 
  2129.  Figure 14-2  Types of script systems 
  2130.  Figure 14-3  The components of the Macintosh Script Management System 
  2131.  Figure 14-4  Worldwide control panels and desk accessory 
  2132.  Figure 14-5  Default icons for keyboards, fonts, and scripts 
  2133.  Figure 14-6  The Keyboard menu 
  2134.  Figure 14-7  Distinguishing scripts with resource ID's for script codes 0–32 
  2135.  Figure 14-8  Keyboard translation 
  2136.  Figure 14-9  Scripts 
  2137.  Figure 14-10  Alphabetic, syllabic, and ideographic representations 
  2138.  Figure 14-11  Three text directions 
  2139.  Figure 14-12  Contextual forms in cursive English 
  2140.  Figure 14-13  Stand-alone and contextual forms in Arabic 
  2141.  Figure 14-14  A ligature in Roman text 
  2142.  Figure 14-15  Ligatures in Arabic text 
  2143.  Figure 14-16  Character reordering in Devanagari  (for the word hindi ) 
  2144.  Figure 14-17  Backing-store and display order 
  2145.  Figure 14-18  Calling routines implemented by script system 
  2146.  Figure 14-19  Calling the Script Manager routines 
  2147.  Figure 14-20  Forward operation of the state machine for word selection 
  2148.  Figure 14-21  NFindWord header and class tables 
  2149.  Figure 14-22  NFindWord state table 
  2150.  Figure 14-23  Format of NFindWord action code 
  2151.  Figure 14-24  Roman word selection state transitions 
  2152.  Figure 14-25  Justification in Roman text 
  2153.  Figure 14-26  The effects of the Roman justification routines 
  2154.  Figure 14-27  The 'itl2' resource header 
  2155.  Figure 14-28  Inside the 'KCHR' resource 
  2156.  Figure 14-29  Format of entries in the 'KSWP' resource 
  2157.  Figure 14-30  The 'itlk' resource entries 
  2158.  Figure 14-31  Key Caps display of dead keys with Option key pressed 
  2159.  Figure 14-32  Display of completer keys after pressing circumflex dead key 
  2160.  Figure 14-33  Extracting blocks of Roman text 
  2161. æC line 17 of card 560
  2162. line 5 of card 571
  2163. line 3 of card 572
  2164. line 19 of card 572
  2165. line 3 of card 574
  2166. line 27 of card 575
  2167. line 8 of card 577
  2168. line 17 of card 578
  2169. line 5 of card 592
  2170. line 8 of card 593
  2171. line 7 of card 594
  2172. line 3 of card 595
  2173. line 8 of card 595
  2174. line 13 of card 595
  2175. line 18 of card 595
  2176. line 5 of card 598
  2177. line 3 of card 606
  2178. line 17 of card 611
  2179. line 22 of card 611
  2180. line 24 of card 638
  2181. line 36 of card 638
  2182. line 41 of card 638
  2183. line 46 of card 638
  2184. line 98 of card 639
  2185. line 26 of card 647
  2186. line 81 of card 647
  2187. line 9 of card 669
  2188. line 19 of card 671
  2189. line 5 of card 673
  2190. line 8 of card 674
  2191. line 3 of card 676
  2192. line 8 of card 676
  2193. line 32 of card 688
  2194. æKY Worldwide Software Overview.Tables
  2195. æN  Table 14-1  GetScript and SetScript verbs 
  2196.  Table 14-2  Verbs for GetEnvirons and SetEnvirons  
  2197.  Table 14-3  Verbs for the KeyScript procedure 
  2198.  Table 14-4  U.S. word selection algorithm  
  2199.  Table 14-5  Occurrence of word breaks in various character sequences  
  2200.  Table 14-6  Significance of the state numbers in the Roman word selection 
  2201.  Table 14-7  U.S. word select transition table for forward processing  
  2202.  Table 14-8  Proportions of slop value to be distributed  
  2203.  Table 14-9  The international and keyboard resources 
  2204.  Table 14-10  Script, language, and region codes 
  2205.  Table 14-11  The keyboard types 
  2206.  Table 14-12  The keyboard modifier bits 
  2207.  Table 14-13  Changes in handling 'KCHR' (0) key combinations  
  2208.  Table 14-14  Changes in 'KCHR' dead-key completers 
  2209.  Table 14-15  Keyboard color icon types and standard icon equivalents  
  2210. æC line 8 of card 615
  2211. line 11 of card 616
  2212. line 12 of card 618
  2213. line 9 of card 639
  2214. line 54 of card 639
  2215. line 72 of card 639
  2216. line 106 of card 639
  2217. line 31 of card 646
  2218. line 18 of card 660
  2219. line 81 of card 663
  2220. line 4 of card 670
  2221. line 31 of card 670
  2222. line 47 of card 671
  2223. line 79 of card 671
  2224. line 9 of card 672
  2225. æKY Worldwide Software Overview.Listings
  2226. æN  Listing 14-1  Obtaining optimized word break tables 
  2227.  Listing 14-2  Substituting and truncating text 
  2228.  Listing 14-3  Distributing slop value among style runs 
  2229.  Listing 14-4  Multiscript mapping and sorting 
  2230.  Listing 14-5  International date and time information 
  2231.  Listing 14-6  Physical layout of keyboards 
  2232.  Listing 14-7  Making keyboard equivalents work with multiple scripts 
  2233. æC line 4 of card 640
  2234. line 4 of card 643
  2235. line 61 of card 646
  2236. line 28 of card 663
  2237. line 48 of card 666
  2238. line 8 of card 677
  2239. line 4 of card 685
  2240. æKY TextEdit.Sections
  2241. æN  About This Chapter 
  2242.  About TextEdit 
  2243.  Mixed-Directional Text 
  2244.    Highlighting 
  2245.    Mouse-Down Regions 
  2246.    Dual Carets 
  2247.    Caret Movement Across Direction Boundaries 
  2248.  Font and Keyboard Synchronization 
  2249.  Double-Byte Characters 
  2250.  Vertical Movement of the Caret 
  2251.  Arrow Key Actions for Selected Text 
  2252.  Caret Position at Line Ends 
  2253.  Word Selection and Line Breaks 
  2254.  Accurate Line Measurement 
  2255.  TextEdit and TrueType Fonts 
  2256.  Using TextEdit 
  2257.    Determining the Version of TextEdit  
  2258.    Customizing TextEdit’s Features 
  2259.      Measuring the Width of Components of a Line 
  2260.      Defining Word Boundaries  
  2261.    Outline Highlighting, Text Buffering, & Inline Input 
  2262.    Setting Alignment for Right-to-Left Directional Scripts 
  2263.    Using WordRedraw for Line Calculations 
  2264.    Using the lineStarts Array to Determine Line Length 
  2265.    Using TextEdit’s Default Click Procedure 
  2266.  TextEdit Routines 
  2267.    Using Outline Highlighting, Text Buffering, & Inline Input  
  2268.      Outline Highlighting 
  2269.      Text Buffering 
  2270.      Inline Input 
  2271.    Customizing TextEdit 
  2272.      Replacing the End-of-Line Routine 
  2273.      Replacing the Measuring Routines 
  2274.      Replacing the Drawing Routine 
  2275.      Replacing the Hit Test Routine 
  2276.      Replacing the Word Breaking Routine 
  2277.    Backspacing to the Beginning of a Style 
  2278.    Determining the Position of an Ambiguous Offset 
  2279.    Toggling a Style 
  2280.    Determining Styles Across a Selection  
  2281.    Setting Styles in TextEdit’s Scrap Record 
  2282.    Determining the Number of Styles 
  2283.  TextEdit Data Structures 
  2284.  Summary of TextEdit 
  2285.    Constants 
  2286.    Data Type 
  2287.    Routines 
  2288.    Global Variables 
  2289.    Assembly-Language Information 
  2290. æC card 708
  2291. card 709
  2292. card 710
  2293. card 711
  2294. card 712
  2295. card 713
  2296. card 714
  2297. card 715
  2298. card 716
  2299. card 717
  2300. card 718
  2301. card 719
  2302. card 720
  2303. card 721
  2304. card 722
  2305. card 723
  2306. card 724
  2307. card 725
  2308. card 726
  2309. card 727
  2310. card 728
  2311. card 729
  2312. card 730
  2313. card 731
  2314. card 732
  2315. card 733
  2316. card 734
  2317. card 735
  2318. card 736
  2319. card 737
  2320. card 738
  2321. card 739
  2322. card 740
  2323. card 741
  2324. card 742
  2325. card 743
  2326. card 744
  2327. card 745
  2328. card 746
  2329. card 747
  2330. card 748
  2331. card 749
  2332. card 750
  2333. card 751
  2334. card 752
  2335. card 753
  2336. card 754
  2337. card 755
  2338. card 756
  2339. æKY TextEdit.Figures
  2340. æN  Figure 15-1  A right-to-left primary line direction 
  2341.  Figure 15-2  The display order 
  2342.  Figure 15-3  The backing-store order 
  2343.  Figure 15-4  Different levels of runs in a line of text 
  2344.  Figure 15-5  Discontinuous highlighting display 
  2345.  Figure 15-6  Highlighting mixed-directional text 
  2346.  Figure 15-7  Mouse-down region specifics 
  2347.  Figure 15-8  Dual carets in mixed-directional text 
  2348.  Figure 15-9  Pasting styled text 
  2349.  Figure 15-10  Dual carets at a direction boundary 
  2350.  Figure 15-11  Caret movement across a direction boundary 
  2351.  Figure 15-12  Font and keyboard script synchronization 
  2352.  Figure 15-13  The caret position at line end 
  2353.  Figure 15-14  Word breaks for word selection 
  2354.  Figure 15-15  A line break with multiple scripts installed 
  2355.  Figure 15-16  A character offset at a line break 
  2356.  Figure 15-17  An initial selection before TESetStyle is called 
  2357.  Figure 15-18  The result of calling TESetStyle to toggle with a bold style 
  2358.  Figure 15-19  The result of calling TESetStyle to toggle with an italic style 
  2359.  Figure 15-20  The TextEdit data structures 
  2360. æC line 5 of card 710
  2361. line 14 of card 710
  2362. line 26 of card 710
  2363. line 33 of card 710
  2364. line 5 of card 711
  2365. line 12 of card 711
  2366. line 7 of card 712
  2367. line 5 of card 713
  2368. line 10 of card 713
  2369. line 21 of card 713
  2370. line 12 of card 714
  2371. line 3 of card 715
  2372. line 7 of card 719
  2373. line 7 of card 720
  2374. line 12 of card 720
  2375. line 12 of card 745
  2376. line 13 of card 746
  2377. line 18 of card 746
  2378. line 23 of card 746
  2379. line 47 of card 750
  2380. æKY TextEdit.Tables
  2381. æN  Table 15-1  Constants for the just parameter of TESetJust  
  2382. æC line 18 of card 729
  2383. æKY TextEdit.Listings
  2384. æN  Listing 15-1  Marking the Style menu items so they correspond to the current  
  2385.  Listing 15-2  Determining the font, face, size, and color of the current selection 
  2386. æC line 14 of card 747
  2387. line 47 of card 747
  2388. æKY Graphics Overview.Sections
  2389. æN  About This Chapter 
  2390.  About Macintosh Graphics 
  2391.  The Components of Macintosh Graphics 
  2392.    QuickDraw 
  2393.    The Interface 
  2394.    The Video Card and Screen 
  2395.  The Major Data Structures 
  2396.    The RGB Color Record 
  2397.    Color Collections 
  2398.    The Pixel Map Record 
  2399.    Port Characteristics: The Color GrafPort Record 
  2400.    Device Characteristics: The Graphics Device Record 
  2401.  Graphics Initialization 
  2402.  The Graphics Path 
  2403.    How Indexed Pixels Work 
  2404.    How Direct Pixels Work 
  2405.  Determining the QuickDraw Version 
  2406.  What Else to Read 
  2407.  Summary of Graphics Data Types 
  2408.    Data Types 
  2409. æC card 757
  2410. card 758
  2411. card 759
  2412. card 760
  2413. card 761
  2414. card 762
  2415. card 763
  2416. card 764
  2417. card 765
  2418. card 766
  2419. card 767
  2420. card 768
  2421. card 769
  2422. card 770
  2423. card 771
  2424. card 772
  2425. card 773
  2426. card 774
  2427. card 775
  2428. card 776
  2429. æKY Graphics Overview.Figures
  2430. æN  Figure 16-1  Macintosh graphics chapters 
  2431.  Figure 16-2  QuickDraw and the graphics managers 
  2432.  Figure 16-3  Initializing Macintosh graphics 
  2433.  Figure 16-4  The indexed pixel path 
  2434.  Figure 16-5  The direct pixel path 
  2435. æC line 11 of card 758
  2436. line 5 of card 761
  2437. line 3 of card 769
  2438. line 3 of card 771
  2439. line 3 of card 772
  2440. æKY Color QuickDraw.Sections
  2441. æN  About This Chapter 
  2442.  About Color QuickDraw 
  2443.  Direct Pixels 
  2444.    Pixel Map Record Extensions 
  2445.    Direct Pixel Values 
  2446.  Writing Compatible Graphics Applications 
  2447.  Using Color QuickDraw 
  2448.    Manipulating Pixel Map Images 
  2449.      Copying With Masks 
  2450.      Colorizing 
  2451.      Transfer Modes 
  2452.      Dithering 
  2453.      Resizing Images 
  2454.    Luminance Mapping 
  2455.    Image Resolution  
  2456.      Displaying Variable-Resolution Pixel Maps and Pictures 
  2457.      Exporting Pixel Map Records 
  2458.    Converting a Bitmap to a Region  
  2459.    Determining Whether Drawing Is Complete 
  2460.  Extensions to the Version 2 Picture Format 
  2461.    Font Name  
  2462.    Line Justification  
  2463.    Direct Pixel Images  
  2464.    Sample Extended Version 2 Picture 
  2465.  Color QuickDraw Routines 
  2466.    Creating an Extended Version 2 Picture 
  2467.    Creating Regions From Bitmaps  
  2468.    Copying Pixel Map Images 
  2469.    Determining Whether QuickDraw Has Finished Drawing  
  2470.    Reporting Data Structure Changes 
  2471.    Obtaining Intermediate Colors 
  2472.    Interpreting New QDError Result Codes 
  2473.    Using a Custom Color Search Function 
  2474.  Summary of Color QuickDraw 
  2475.    Constants 
  2476.    Data Types 
  2477.    Routines 
  2478.    Result Codes 
  2479. æC card 777
  2480. card 778
  2481. card 779
  2482. card 780
  2483. card 781
  2484. card 782
  2485. card 783
  2486. card 784
  2487. card 785
  2488. card 786
  2489. card 787
  2490. card 788
  2491. card 789
  2492. card 790
  2493. card 791
  2494. card 792
  2495. card 793
  2496. card 794
  2497. card 795
  2498. card 796
  2499. card 797
  2500. card 798
  2501. card 799
  2502. card 800
  2503. card 801
  2504. card 802
  2505. card 803
  2506. card 804
  2507. card 805
  2508. card 806
  2509. card 807
  2510. card 808
  2511. card 809
  2512. card 810
  2513. card 811
  2514. card 812
  2515. card 813
  2516. card 814
  2517. æKY Color QuickDraw.Figures
  2518. æN  Figure 17-1  A 32-bit direct pixel 
  2519.  Figure 17-2  A 16-bit direct pixel 
  2520.  Figure 17-3  Converting a 16-bit direct pixel to a 32-bit direct pixel 
  2521.  Figure 17-4  Converting a 48-bit RGB color to a 32-bit direct pixel 
  2522.  Figure 17-5  Converting a 48-bit RGB color to a 16-bit direct pixel 
  2523.  Figure 17-6  Converting a 48-bit RGB color to an 8-bit indexed pixel 
  2524.  Figure 17-7  Converting a 32-bit pixel to a 48-bit RGB color 
  2525.  Figure 17-8  Converting a 16-bit pixel to a 48-bit RGB color 
  2526.  Figure 17-9  Converting an 8-bit indexed pixel to a 48-bit RGB color 
  2527.  Figure 17-10  Copying pixel maps with CopyBits 
  2528.  Figure 17-11  Copying pixel maps with CopyMask 
  2529.  Figure 17-12  Copying pixel maps with CopyDeepMask 
  2530. æC line 9 of card 781
  2531. line 20 of card 781
  2532. line 27 of card 781
  2533. line 36 of card 781
  2534. line 41 of card 781
  2535. line 46 of card 781
  2536. line 51 of card 781
  2537. line 56 of card 781
  2538. line 61 of card 781
  2539. line 3 of card 785
  2540. line 8 of card 785
  2541. line 14 of card 785
  2542. æKY Color QuickDraw.Tables
  2543. æN  Table 17-1  The default color tables for gray-scale devices 
  2544.  Table 17-2  The default color tables for color devices 
  2545.  Table 17-3  The new version 2 picture opcodes  
  2546.  Table 17-4  Version 2 picture example 
  2547. æC line 11 of card 790
  2548. line 26 of card 790
  2549. line 16 of card 796
  2550. line 4 of card 800
  2551. æKY Picture Utilities Package.Sections
  2552. æN  About This Chapter 
  2553.  About the Picture Utilities Package 
  2554.  Using the Picture Utilities Package 
  2555.    Getting Color Information 
  2556.    Surveying Multiple Pixel Maps or Pictures 
  2557.    Storing Information: The Picture Information Record 
  2558.  Picture Utilities Package Routines 
  2559.    Collecting Information From a Single Image 
  2560.    Collecting Information From Multiple Images 
  2561.    Creating Custom Color-Sampling Methods 
  2562.  Summary of the Picture Utilities Package 
  2563.    Constants 
  2564.    Data Types  
  2565.    Routines  
  2566.    Result Codes 
  2567.    Assembly-Language Information 
  2568. æC card 815
  2569. card 816
  2570. card 817
  2571. card 818
  2572. card 819
  2573. card 820
  2574. card 821
  2575. card 822
  2576. card 823
  2577. card 824
  2578. card 825
  2579. card 826
  2580. card 827
  2581. card 828
  2582. card 829
  2583. card 830
  2584. æKY Color Picker Package.Sections
  2585. æN  About This Chapter 
  2586.  About the Color Picker Package 
  2587.  Color Models 
  2588.    The RGB Model 
  2589.    The CMYK Model 
  2590.    The HLS and HSV Models 
  2591.    Color Models in the Dialog Box 
  2592.  Using the Color Picker Package 
  2593.    Presenting the Color Picker Dialog Box 
  2594.    Using Conversion Facilities 
  2595.  Color Picker Package Routines 
  2596.    Displaying the Color Picker Dialog Box 
  2597.    Converting Between Color Models 
  2598.    Converting Between SmallFract and Fixed Values 
  2599.  Summary of the Color Picker Package 
  2600.    Constants 
  2601.    Data Types 
  2602.    Routines 
  2603.    Assembly-Language Information 
  2604. æC card 831
  2605. card 832
  2606. card 833
  2607. card 834
  2608. card 835
  2609. card 836
  2610. card 837
  2611. card 838
  2612. card 839
  2613. card 840
  2614. card 841
  2615. card 842
  2616. card 843
  2617. card 844
  2618. card 845
  2619. card 846
  2620. card 847
  2621. card 848
  2622. card 849
  2623. æKY Color Picker Package.Figures
  2624. æN  Figure 19-1  The Color Picker dialog box 
  2625.  Figure 19-2  The RGB color cube 
  2626.  Figure 19-3  Getting to pink 
  2627.  Figure 19-4  Cyan, magenta, and yellow on the color cube 
  2628.  Figure 19-5  The HLS/HSV color cone 
  2629. æC line 7 of card 832
  2630. line 16 of card 834
  2631. line 21 of card 834
  2632. line 13 of card 835
  2633. line 5 of card 836
  2634. æKY Palette Manager.Sections
  2635. æN  About This Chapter  
  2636.  About the Palette Manager  
  2637.  Palettes 
  2638.    Color Usage Categories 
  2639.  Changing the Color Environment  
  2640.  Restoring the Color Environment  
  2641.  Using the Palette Manager 
  2642.    Working With Color Usage Categories 
  2643.      Courteous Colors 
  2644.      Tolerant Colors 
  2645.      Animated Colors 
  2646.      Displaying Animated Colors on Direct Devices 
  2647.      Explicit Colors 
  2648.      Inhibited Colors 
  2649.      Combined Usage Categories 
  2650.    Creating Palettes  
  2651.      Assigning Colors to a Palette 
  2652.      Creating a Palette in a Resource File 
  2653.      Assigning a Default Palette to an Application  
  2654.    Linking a Color Table to a Palette 
  2655.    Associating One Palette With Many Ports  
  2656.  Palette Manager Routines 
  2657.    Initializing the Palette Manager 
  2658.    Initializing and Allocating Palettes 
  2659.    Interacting With the Window Manager 
  2660.    Drawing With Color Palettes 
  2661.    Animating Color Tables 
  2662.    Manipulating Palettes and Color Tables 
  2663.    Manipulating Palette Entries 
  2664.  Summary of the Palette Manager 
  2665.    Constants 
  2666.    Data Types 
  2667.    Routines 
  2668. æC card 850
  2669. card 851
  2670. card 852
  2671. card 853
  2672. card 854
  2673. card 855
  2674. card 856
  2675. card 857
  2676. card 858
  2677. card 859
  2678. card 860
  2679. card 861
  2680. card 862
  2681. card 863
  2682. card 864
  2683. card 865
  2684. card 866
  2685. card 867
  2686. card 868
  2687. card 869
  2688. card 870
  2689. card 871
  2690. card 872
  2691. card 873
  2692. card 874
  2693. card 875
  2694. card 876
  2695. card 877
  2696. card 878
  2697. card 879
  2698. card 880
  2699. card 881
  2700. card 882
  2701. æKY Palette Manager.Figures
  2702. æN  Figure 20-1  A courteous palette 
  2703. æC line 5 of card 858
  2704. æKY Palette Manager.Listings
  2705. æN  Listing 20-1  A palette ('pltt') resource  
  2706.  Listing 20-2  A multi-use palette  
  2707. æC line 4 of card 867
  2708. line 51 of card 867
  2709. æKY Graphics Devices Manager.Sections
  2710. æN  About This Chapter 
  2711.  About the Graphics Devices Manager 
  2712.  Offscreen Graphics 
  2713.  Using the Graphics Devices Manager 
  2714.    Offscreen Graphics World Flags 
  2715.    Example of Offscreen Graphics Code 
  2716.  Advanced Features 
  2717.    The Graphics Device Record 
  2718.    The 'scrn' Resource 
  2719.    Setting a Device's Pixel Depth 
  2720.  Graphics Devices Manager Routines 
  2721.    High-Level Routines 
  2722.      Creating a Graphics World 
  2723.      Working With a Graphics World’s Pixel Map 
  2724.      Updating the Graphics World 
  2725.      Setting and Retrieving the Graphics World 
  2726.      Disposing of a Graphics World 
  2727.    Low-Level Routines 
  2728.      Supporting the Offscreen Graphics World 
  2729.      Managing the Graphics Device Record 
  2730.  Summary of the Graphics Manager 
  2731.    Constants 
  2732.    Data Types 
  2733.    Routines 
  2734.    Global Variables 
  2735.    Result Codes 
  2736.    Assembly-language Information 
  2737. æC card 883
  2738. card 884
  2739. card 885
  2740. card 886
  2741. card 887
  2742. card 888
  2743. card 889
  2744. card 890
  2745. card 891
  2746. card 892
  2747. card 893
  2748. card 894
  2749. card 895
  2750. card 896
  2751. card 897
  2752. card 898
  2753. card 899
  2754. card 900
  2755. card 901
  2756. card 902
  2757. card 903
  2758. card 904
  2759. card 905
  2760. card 906
  2761. card 907
  2762. card 908
  2763. card 909
  2764. æKY Graphics Devices Manager.Listings
  2765. æN  Listing 21-1  Sample offscreen graphics world 
  2766. æC line 4 of card 888
  2767. æKY Sound Manager.Sections
  2768. æN  About This Chapter 
  2769.  About the Sound Manager 
  2770.  Introduction to Sound 
  2771.    Sound Synthesizers 
  2772.      The Square-Wave Synthesizer 
  2773.      The Wave-Table Synthesizer 
  2774.      The Sampled Sound Synthesizer 
  2775.    Sound Commands 
  2776.    Sound Channels 
  2777.    Multiple Channels of Sound 
  2778.    Sound Compression and Expansion 
  2779.    Continuous Play From Disk 
  2780.    Sound Recording 
  2781.  Sound Storage Formats 
  2782.    Sound Resources 
  2783.      The Format 1 'snd ' Resource 
  2784.      The Format 2 'snd ' Resource 
  2785.    Sound Files 
  2786.      Chunk Organization and Data Types 
  2787.      The Form Chunk 
  2788.      The Format Version Chunk 
  2789.      The Common Chunk 
  2790.      The Sound Data Chunk 
  2791.      Reading and Writing Sound Files 
  2792.  Using the Sound Manager 
  2793.    Playing 'snd ' Resources 
  2794.    Allocating Sound Channels 
  2795.    Initializing Sound Channels 
  2796.    Releasing Sound Channels 
  2797.    Determining Features of Synthesizers 
  2798.    Playing Frequencies 
  2799.    Playing Sampled Sounds 
  2800.    Installing Voices Into Channels 
  2801.    Manipulating a Sound That Is Playing 
  2802.    Flushing Sound Channels 
  2803.    Pausing and Restarting Sound Channels 
  2804.    Synchronizing Sound Channels 
  2805.    Managing the CPU Load 
  2806.    Producing an Alert Sound 
  2807.    Compressing and Expanding Sounds 
  2808.    Playing Sampled Sounds From Files 
  2809.      Playing an 'snd ' Resource From Disk 
  2810.      Playing a File From Disk 
  2811.      Playing Selections 
  2812.    Recording Sounds Through the Sound Input Dialog Box 
  2813.    Recording Sounds Directly From a Device 
  2814.      Defining a Sound Input Completion Routine 
  2815.      Defining an Interrupt Routine 
  2816.    Getting and Setting Sound Input Device Information 
  2817.    Obtaining Information About Sound Features 
  2818.      Obtaining Information About Available Sound Features 
  2819.      Obtaining Version Information 
  2820.      Obtaining Information About a Single Sound Channel 
  2821.      Obtaining Information About All Sound Channels 
  2822.    Using Double Buffers 
  2823.      Setting Up Double Buffers 
  2824.      Writing a Doubleback Procedure 
  2825.    Specifying Callback Routines 
  2826.  Sound Manager Routines 
  2827.    Playing Sound Resources 
  2828.    Allocating and Releasing Sound Channels 
  2829.    Linking Synthesizers to Sound Channels 
  2830.    Sending Commands to a Sound Channel 
  2831.    Obtaining Information 
  2832.    Playing From Disk 
  2833.    Managing Double Buffers 
  2834.    Compressing and Expanding Audio Data 
  2835.    Recording Sounds 
  2836.    Manipulating Sound Input Devices 
  2837.      Opening and Closing Sound Input Devices 
  2838.      Recording Sounds Directly From Sound Input Devices 
  2839.      Manipulating Device Settings 
  2840.    Constructing Sound Resource and File Headers 
  2841.    Registering Sound Input Devices 
  2842.    Converting Between Milliseconds and Bytes 
  2843.  Summary of the Sound Manager 
  2844.    Constants 
  2845.    Data Types 
  2846.    Routines 
  2847.    Application-Defined Routines 
  2848.    Result Codes 
  2849.    Assembly-Language Information 
  2850. æC card 910
  2851. card 911
  2852. card 912
  2853. card 913
  2854. card 914
  2855. card 915
  2856. card 916
  2857. card 917
  2858. card 918
  2859. card 919
  2860. card 920
  2861. card 921
  2862. card 922
  2863. card 923
  2864. card 924
  2865. card 925
  2866. card 926
  2867. card 927
  2868. card 928
  2869. card 929
  2870. card 930
  2871. card 931
  2872. card 932
  2873. card 933
  2874. card 934
  2875. card 935
  2876. card 936
  2877. card 937
  2878. card 938
  2879. card 939
  2880. card 940
  2881. card 941
  2882. card 942
  2883. card 943
  2884. card 944
  2885. card 945
  2886. card 946
  2887. card 947
  2888. card 948
  2889. card 949
  2890. card 950
  2891. card 951
  2892. card 952
  2893. card 953
  2894. card 954
  2895. card 955
  2896. card 956
  2897. card 957
  2898. card 958
  2899. card 959
  2900. card 960
  2901. card 961
  2902. card 962
  2903. card 963
  2904. card 964
  2905. card 965
  2906. card 966
  2907. card 967
  2908. card 968
  2909. card 969
  2910. card 970
  2911. card 971
  2912. card 972
  2913. card 973
  2914. card 974
  2915. card 975
  2916. card 976
  2917. card 977
  2918. card 978
  2919. card 979
  2920. card 980
  2921. card 981
  2922. card 982
  2923. card 983
  2924. card 984
  2925. card 985
  2926. card 986
  2927. card 987
  2928. card 988
  2929. card 989
  2930. card 990
  2931. card 991
  2932. æKY Sound Manager.Figures
  2933. æN  Figure 22-1  The position of the Sound Manager 
  2934.  Figure 22-2  Bypassing the command queue 
  2935.  Figure 22-3  Mixing multiple channels of sampled sound 
  2936.  Figure 22-4  A graph of a wave table 
  2937.  Figure 22-5  The Sound control panel 
  2938.  Figure 22-6  The sound recording dialog box 
  2939.  Figure 22-7  The structure of 'snd ' resources 
  2940.  Figure 22-8  The location of the data offset bit 
  2941.  Figure 22-9  The general structure of a chunk 
  2942.  Figure 22-10  Interleaving stereo sample points 
  2943.  Figure 22-11  A sample AIFF-C file 
  2944. æC line 11 of card 912
  2945. line 16 of card 912
  2946. line 23 of card 912
  2947. line 8 of card 915
  2948. line 5 of card 922
  2949. line 16 of card 922
  2950. line 18 of card 924
  2951. line 25 of card 924
  2952. line 3 of card 928
  2953. line 44 of card 932
  2954. line 5 of card 933
  2955. æKY Sound Manager.Tables
  2956. æN  Table 22-1  Audio compression and expansion options 
  2957.  Table 22-2  AIFF and AIFF-C capabilities  
  2958.  Table 22-3  MIDI values 
  2959.  Table 22-4  Sample rates 
  2960.  Table 22-5  Sound input device information selectors 
  2961.  Table 22-6  Sound commands 
  2962.  Table 22-7  The sound header format used by SetupSndHeader 
  2963. æC line 32 of card 920
  2964. line 14 of card 927
  2965. line 42 of card 940
  2966. line 98 of card 941
  2967. line 79 of card 958
  2968. line 30 of card 972
  2969. line 13 of card 982
  2970. æKY Sound Manager.Listings
  2971. æN  Listing 22-1  A format 1 'snd ' resource 
  2972.  Listing 22-2  A restructured format 1 'snd ' resource 
  2973.  Listing 22-3  A format 1 'snd ' resource containing sampled sound data 
  2974.  Listing 22-4  A resource specification 
  2975.  Listing 22-5  Resource specification for the Simple Beep 
  2976.  Listing 22-6  A format 2 'snd ' resource 
  2977.  Listing 22-7  Playing an 'snd ' resource with SndPlay 
  2978.  Listing 22-8  Using low-level Sound Manager routines 
  2979.  Listing 22-9  Creating a sound channel 
  2980.  Listing 22-10  Using the availableCmd command 
  2981.  Listing 22-11  Using the versionCmd command 
  2982.  Listing 22-12  Using the freqDurationCmd command 
  2983.  Listing 22-13  An 'snd ' resource containing compressed sound data 
  2984.  Listing 22-14  Halving the frequency of a sampled sound 
  2985.  Listing 22-15  Compressing audio data 
  2986.  Listing 22-16  Playing an 'snd ' resource from disk 
  2987.  Listing 22-17  Recording through the sound input dialog box 
  2988.  Listing 22-18  Recording directly from a sound input device 
  2989.  Listing 22-19  Determining the name of a sound input device 
  2990.  Listing 22-20  Determining some sound input device settings 
  2991.  Listing 22-21  Determining whether a sound channel is paused 
  2992.  Listing 22-22  Determining the number of allocated sound channels 
  2993.  Listing 22-23  Setting up double buffers 
  2994.  Listing 22-24  Defining a doubleback procedure 
  2995.  Listing 22-25  Issuing a callback command 
  2996.  Listing 22-26  Defining a callback procedure 
  2997. æC line 11 of card 925
  2998. line 36 of card 925
  2999. line 70 of card 925
  3000. line 105 of card 925
  3001. line 127 of card 925
  3002. line 8 of card 926
  3003. line 4 of card 935
  3004. line 30 of card 935
  3005. line 10 of card 936
  3006. line 6 of card 939
  3007. line 23 of card 939
  3008. line 14 of card 940
  3009. line 334 of card 941
  3010. line 11 of card 943
  3011. line 12 of card 949
  3012. line 6 of card 951
  3013. line 4 of card 954
  3014. line 79 of card 955
  3015. line 36 of card 958
  3016. line 52 of card 958
  3017. line 60 of card 962
  3018. line 30 of card 963
  3019. line 4 of card 965
  3020. line 18 of card 966
  3021. line 11 of card 967
  3022. line 43 of card 967
  3023. æKY Time Manager.Sections
  3024. æN  About This Chapter 
  3025.  About the Time Manager 
  3026.    Time Manager Versions 
  3027.      The Original Time Manager 
  3028.      The Revised Time Manager 
  3029.      The Extended Time Manager 
  3030.    Other Time-Related Facilities 
  3031.      The TickCount Function 
  3032.      The Delay Function 
  3033.      The Vertical Retrace Manager 
  3034.  Using the Time Manager 
  3035.    Installing and Activating Task Records 
  3036.    Using Application Global Variables in Tasks 
  3037.    Performing Periodic Tasks 
  3038.    Computing Elapsed Time 
  3039.  Time Manager Routines 
  3040.  Summary of the Time Manager 
  3041.    Data Types 
  3042.    Routines 
  3043.    Assembly-Language Information 
  3044. æC card 992
  3045. card 993
  3046. card 994
  3047. card 995
  3048. card 996
  3049. card 997
  3050. card 998
  3051. card 999
  3052. card 1000
  3053. card 1001
  3054. card 1002
  3055. card 1003
  3056. card 1004
  3057. card 1005
  3058. card 1006
  3059. card 1007
  3060. card 1008
  3061. card 1009
  3062. card 1010
  3063. card 1011
  3064. æKY Time Manager.Figures
  3065. æN  Figure 23-1  Drifting, unpredictable frequency. 
  3066.  Figure 23-2  The extended Time Manager (drift-free, fixed frequency) 
  3067. æC line 5 of card 997
  3068. line 12 of card 997
  3069. æKY Time Manager.Listings
  3070. æN  Listing 23-1  Installing and activating a Time Manager task 
  3071.  Listing 23-2  Passing the address of the application’s A5 world to a 
  3072.  Listing 23-3  Defining a Time Manager task that can manipulate global variables 
  3073.  Listing 23-4  Defining a periodic Time Manager task 
  3074.  Listing 23-5  Computing elapsed time 
  3075. æC line 4 of card 1003
  3076. line 24 of card 1004
  3077. line 45 of card 1004
  3078. line 4 of card 1005
  3079. line 6 of card 1006
  3080. æKY Notification Manager.Sections
  3081. æN  About This Chapter 
  3082.  About the Notification Manager 
  3083.  Using the Notification Manager 
  3084.    Creating a Notification Request 
  3085.    Defining a Response Procedure 
  3086.    Installing a Notification Request 
  3087.    Removing a Notification Request 
  3088.  Notification Manager Routines 
  3089.  Summary of the Notification Manager 
  3090.    Constant 
  3091.    Data Types 
  3092.    Routines 
  3093.    Application-Defined Routines 
  3094.    Result Codes 
  3095. æC card 1012
  3096. card 1013
  3097. card 1014
  3098. card 1015
  3099. card 1016
  3100. card 1017
  3101. card 1018
  3102. card 1019
  3103. card 1020
  3104. card 1021
  3105. card 1022
  3106. card 1023
  3107. card 1024
  3108. card 1025
  3109. æKY Notification Manager.Figures
  3110. æN  Figure 24-1  A notification in the Application menu 
  3111.  Figure 24-2  A sample alert box 
  3112. æC line 43 of card 1013
  3113. line 75 of card 1013
  3114. æKY Notification Manager.Listings
  3115. æN  Listing 24-1  Setting up a notification record 
  3116. æC line 79 of card 1015
  3117. æKY File Manager.Sections
  3118. æN  About This Chapter 
  3119.  About the File Manager 
  3120.  Identifying Files, Directories, and Volumes 
  3121.    File System Specifications 
  3122.    The Evolution of File Specification Strategies 
  3123.  Limitations on MFS Disks 
  3124.  A Simpler Safe-Save Strategy 
  3125.  New Special-Purpose Features 
  3126.    A Quick, Thorough Catalog Search 
  3127.    File IDs 
  3128.    Shared Environments 
  3129.      Remote Mounting 
  3130.      Privilege Information in Foreign File Systems 
  3131.  Using the File Manager 
  3132.    Using FSSpec Records 
  3133.    Updating Files 
  3134.    Searching a Volume 
  3135.    Tracking Files With File IDs 
  3136.    Mounting Volumes Programmatically 
  3137.    Handling Privilege Information in Foreign File Systems 
  3138.  High-Level File Manager Routines 
  3139.    Routines That Use FSSpec Records 
  3140.      Making FSSpec Records 
  3141.      Exchanging the Data in Two Files 
  3142.      Functions Modified to Accept FSSpec Records 
  3143.    Opening a Data Fork 
  3144.    Managing HFS 
  3145.      Functions New With HFS  
  3146.      MFS Functions Modified to Accommodate Directory IDs 
  3147.  Low-Level File Manager Routines 
  3148.    Reading Volume Information 
  3149.    Searching a Catalog 
  3150.    Creating FSSpec Records 
  3151.    Swapping Data Between Two Files 
  3152.    Creating and Using File IDs 
  3153.      Functions for Manipulating File IDs 
  3154.      Functions Changed to Accommodate File IDs 
  3155.    Mounting Volumes 
  3156.    Accessing Privilege Information in Foreign File Systems 
  3157.    Opening Data Forks 
  3158.  Summary of the File Manager 
  3159.    Constants 
  3160.    Data Types 
  3161.    Routines 
  3162.    Result Codes 
  3163.    Assembly-Language Information 
  3164. æC card 1026
  3165. card 1027
  3166. card 1028
  3167. card 1029
  3168. card 1030
  3169. card 1031
  3170. card 1032
  3171. card 1033
  3172. card 1034
  3173. card 1035
  3174. card 1036
  3175. card 1037
  3176. card 1038
  3177. card 1039
  3178. card 1040
  3179. card 1041
  3180. card 1042
  3181. card 1043
  3182. card 1044
  3183. card 1045
  3184. card 1046
  3185. card 1047
  3186. card 1048
  3187. card 1049
  3188. card 1050
  3189. card 1051
  3190. card 1052
  3191. card 1053
  3192. card 1054
  3193. card 1055
  3194. card 1056
  3195. card 1057
  3196. card 1058
  3197. card 1059
  3198. card 1060
  3199. card 1061
  3200. card 1062
  3201. card 1063
  3202. card 1064
  3203. card 1065
  3204. card 1066
  3205. card 1067
  3206. card 1068
  3207. card 1069
  3208. card 1070
  3209. card 1071
  3210. æKY File Manager.Figures
  3211. æN  Figure 25-1  Identifying a file in MFS 
  3212.  Figure 25-2  Identifying a file in HFS 
  3213.  Figure 25-3  The effect of ioSearchBits on ioSearchInfo1and ioSearchInfo2 
  3214. æC line 14 of card 1030
  3215. line 64 of card 1030
  3216. line 151 of card 1042
  3217. æKY File Manager.Tables
  3218. æN  Table 25-1  How FSMakeFSSpec interprets file specifications 
  3219.  Table 25-2  The effect of FSpExchangeFiles on a catalog entry 
  3220.  Table 25-3  The effect of FSpExchangeFiles on a file control block 
  3221.  Table 25-4  Fields in ioSearchInfo1 and ioSearchInfo2 used for a file 
  3222.  Table 25-5  Fields in ioSearchInfo1 and ioSearchInfo2 used for a directory 
  3223. æC line 55 of card 1040
  3224. line 18 of card 1041
  3225. line 42 of card 1041
  3226. line 43 of card 1042
  3227. line 67 of card 1042
  3228. æKY File Manager.Listings
  3229. æN  Listing 25-1  Testing for PBCatSearch 
  3230.  Listing 25-2  Opening a document using the FSSpec record 
  3231.  Listing 25-3  Updating a file with FSpExchangeFiles 
  3232.  Listing 25-4  Searching a volume with PBCatSearch 
  3233. æC line 105 of card 1039
  3234. line 26 of card 1040
  3235. line 63 of card 1041
  3236. line 172 of card 1042
  3237. æKY Standard File Package.Sections
  3238. æN  About This Chapter 
  3239.  About the Standard File Package 
  3240.  Using the Standard File Package 
  3241.    Presenting the Default Interface 
  3242.    Customizing Your Interface 
  3243.      Customized Dialog Boxes 
  3244.      Callback Routines 
  3245.      Compatibility With Earlier Procedures 
  3246.  Standard File Package Routines 
  3247.    Saving Files 
  3248.    Opening Files 
  3249.  Summary of the Standard File Package 
  3250.    Constants 
  3251.    Data Types 
  3252.    Routines 
  3253.    Assembly-Language Information 
  3254. æC card 1072
  3255. card 1073
  3256. card 1074
  3257. card 1075
  3258. card 1076
  3259. card 1077
  3260. card 1078
  3261. card 1080
  3262. card 1081
  3263. card 1082
  3264. card 1083
  3265. card 1084
  3266. card 1085
  3267. card 1086
  3268. card 1087
  3269. card 1088
  3270. æKY Standard File Package.Figures
  3271. æN  Figure 26-1  The default Open dialog box 
  3272.  Figure 26-2  The default Save dialog box 
  3273.  Figure 26-3  The New Folder dialog box 
  3274.  Figure 26-4  The name conflict dialog box 
  3275. æC line 7 of card 1075
  3276. line 18 of card 1075
  3277. line 23 of card 1075
  3278. line 28 of card 1075
  3279. æKY Standard File Package.Listings
  3280. æN  Listing 26-1  Opening a document  
  3281.  Listing 26-2  The definition of the default Open dialog box 
  3282.  Listing 26-3  The definition of the default Save dialog box 
  3283.  Listing 26-4.  The  item list for the default Open dialog box 
  3284.  Listing 26-5.  The  item list for the default Save dialog box 
  3285. æC line 40 of card 1075
  3286. line 6 of card 1077
  3287. line 18 of card 1077
  3288. line 36 of card 1077
  3289. line 52 of card 1077
  3290. æKY Alias Manager.Sections
  3291. æN  About This Chapter 
  3292.  About the Alias Manager 
  3293.  About Alias Records 
  3294.  Search Strategies 
  3295.    Fast Search 
  3296.    Exhaustive Search 
  3297.  Using the Alias Manager 
  3298.    Creating Alias Records 
  3299.    Resolving Alias Records 
  3300.      ResolveAlias 
  3301.      MatchAlias 
  3302.    Maintaining Alias Records 
  3303.    Getting Information About Alias Records 
  3304.    Customizing Alias Records 
  3305.  Alias Manager Routines 
  3306.    Creating and Updating Alias Records 
  3307.    Resolving and Reading Alias Records 
  3308.    Filtering Possible Targets 
  3309.  Summary of the Alias Manager 
  3310.    Constants 
  3311.    Data Types 
  3312.    Routines 
  3313.    Application-Defined Routine 
  3314.    Result Codes 
  3315.    Assembly-Language Information 
  3316. æC card 1089
  3317. card 1090
  3318. card 1091
  3319. card 1092
  3320. card 1093
  3321. card 1094
  3322. card 1095
  3323. card 1096
  3324. card 1097
  3325. card 1098
  3326. card 1099
  3327. card 1100
  3328. card 1101
  3329. card 1102
  3330. card 1103
  3331. card 1104
  3332. card 1105
  3333. card 1106
  3334. card 1107
  3335. card 1108
  3336. card 1109
  3337. card 1110
  3338. card 1111
  3339. card 1112
  3340. card 1113
  3341. æKY Alias Manager.Figures
  3342. æN  Figure 27-1  Resolving a relative path 
  3343. æC line 35 of card 1091
  3344. æKY Memory Management.Sections
  3345. æN  About This Chapter 
  3346.  About Memory Management 
  3347.    Dividing Memory Among Multiple Applications 
  3348.    Extending an Application’s Available Memory 
  3349.    Extending the Operating System’s Available Memory 
  3350.    Controlling the System Memory Settings 
  3351.  About the Memory Manager 
  3352.    Using Master Pointers 
  3353.    Using Window and Control Definition Functions 
  3354.    Manipulating 24-Bit and 32-Bit Memory Addresses 
  3355.  Using the Memory Manager 
  3356.    Setting and Restoring the A5 Register 
  3357.    Manipulating A5 Without MPW 
  3358.  Memory Manager Routines 
  3359.    Setting and Restoring the A5 World 
  3360.    Manipulating Memory Addresses 
  3361.  About Virtual Memory 
  3362.  Using Virtual Memory 
  3363.    Holding and Releasing Memory 
  3364.    Locking and Unlocking Memory 
  3365.    Obtaining Information About Virtual Memory 
  3366.      Information About the System Memory Configuration 
  3367.      Information About Page Mapping 
  3368.    Deferring User Interrupt Handling 
  3369.    Debugger Support Under Virtual Memory 
  3370.      Bus Error Vectors 
  3371.      Special Nonmaskable Interrupt Needs 
  3372.      Supervisor Mode 
  3373.      The Debugging State 
  3374.      Keyboard Input 
  3375.      Page States 
  3376.  Virtual Memory Routines 
  3377.    Holding and Releasing Pages 
  3378.    Locking and Unlocking Pages 
  3379.    Obtaining Page-Mapping Information 
  3380.    Deferring User Interrupt Handling 
  3381.    Determining Which Debugger Functions Are Present 
  3382.    Determining Whether Paging Is Safe 
  3383.    Locking and Unlocking Memory With Caching Enabled 
  3384.    Entering and Exiting the Debugging State 
  3385.    Obtaining Keyboard Input 
  3386.    Determining Page State 
  3387.  About Temporary Memory 
  3388.  Using Temporary Memory 
  3389.    Allocating Temporary Memory 
  3390.    Locking Temporary Memory 
  3391.    Unlocking Temporary Memory 
  3392.    Releasing Temporary Memory 
  3393.    Determining Features of Temporary Memory 
  3394.  Temporary Memory Routines 
  3395.    Requesting Temporary Memory 
  3396.    Locking and Unlocking Temporary Memory 
  3397.    Freeing Temporary Memory 
  3398.  Summary of Memory Management 
  3399.    Constants 
  3400.    Data Types 
  3401.    Memory Manager Routines 
  3402.    Virtual Memory Routines 
  3403.    Temporary Memory Routines 
  3404.    Result Codes 
  3405.    Assembly-Language Information 
  3406. æC card 1114
  3407. card 1115
  3408. card 1116
  3409. card 1117
  3410. card 1118
  3411. card 1119
  3412. card 1120
  3413. card 1121
  3414. card 1122
  3415. card 1123
  3416. card 1124
  3417. card 1125
  3418. card 1126
  3419. card 1127
  3420. card 1128
  3421. card 1129
  3422. card 1130
  3423. card 1131
  3424. card 1132
  3425. card 1133
  3426. card 1134
  3427. card 1135
  3428. card 1136
  3429. card 1137
  3430. card 1138
  3431. card 1139
  3432. card 1140
  3433. card 1141
  3434. card 1142
  3435. card 1143
  3436. card 1144
  3437. card 1145
  3438. card 1146
  3439. card 1147
  3440. card 1148
  3441. card 1149
  3442. card 1150
  3443. card 1151
  3444. card 1152
  3445. card 1153
  3446. card 1154
  3447. card 1155
  3448. card 1156
  3449. card 1157
  3450. card 1158
  3451. card 1159
  3452. card 1160
  3453. card 1161
  3454. card 1162
  3455. card 1163
  3456. card 1164
  3457. card 1165
  3458. card 1166
  3459. card 1167
  3460. card 1168
  3461. card 1169
  3462. card 1170
  3463. card 1171
  3464. card 1172
  3465. card 1173
  3466. card 1174
  3467. æKY Memory Management.Figures
  3468. æN  Figure 28-1  Memory organization in a single-application environment 
  3469.  Figure 28-2  The organization of the application partition 
  3470.  Figure 28-3  Memory organization in a multiple application environment 
  3471.  Figure 28-4  Using temporary memory 
  3472.  Figure 28-5  The Memory control panel 
  3473.  Figure 28-6  A master pointer structure in the 24-bit Memory Manager 
  3474. æC line 3 of card 1115
  3475. line 10 of card 1115
  3476. line 9 of card 1116
  3477. line 7 of card 1117
  3478. line 3 of card 1119
  3479. line 3 of card 1121
  3480. æKY Memory Management.Listings
  3481. æN  Listing 28-1  Passing A5 to a notification response procedure 
  3482.  Listing 28-2  Setting up and restoring A5 
  3483.  Listing 28-3  Translating logical to physical addresses 
  3484.  Listing 28-4  Determining whether temporary memory routines are available 
  3485. æC line 6 of card 1125
  3486. line 31 of card 1125
  3487. line 32 of card 1136
  3488. line 6 of card 1162
  3489. æKY Process Management.Sections
  3490. æN  About This Chapter 
  3491.  About Process Management 
  3492.    How the Process Manager Creates Processes 
  3493.    How the Process Manager Schedules Processes 
  3494.    How Your Application Specifies Scheduling Options 
  3495.  Using the Process Manager 
  3496.    Opening or Printing Files Based on Finder Information 
  3497.    Getting Information About Other Processes 
  3498.    Launching Other Applications 
  3499.      Specifying Launch Options 
  3500.      Controlling Launched Applications 
  3501.    Launching Desk Accessories 
  3502.  Process Manager Routines 
  3503.    Getting Process Information 
  3504.    Launching Applications and Desk Accessories 
  3505.  Summary of Process Manager Routines 
  3506.    Constants 
  3507.    Data Types 
  3508.    Routines 
  3509.    Result Codes 
  3510.    Assembly-Language Information 
  3511. æC card 1175
  3512. card 1176
  3513. card 1177
  3514. card 1178
  3515. card 1179
  3516. card 1180
  3517. card 1181
  3518. card 1182
  3519. card 1183
  3520. card 1184
  3521. card 1185
  3522. card 1186
  3523. card 1187
  3524. card 1188
  3525. card 1189
  3526. card 1190
  3527. card 1191
  3528. card 1192
  3529. card 1193
  3530. card 1194
  3531. card 1195
  3532. æKY Process Management.Listings
  3533. æN  Listing 29-1  Searching for a specific process 
  3534.  Listing 29-2  Launching an application 
  3535. æC line 86 of card 1182
  3536. line 80 of card 1183
  3537. æKY Slot Manager.Sections
  3538. æN  About This Chapter 
  3539.  About the Slot Manager 
  3540.  Card Initialization 
  3541.  Using the Slot Manager 
  3542.    Enabling and Disabling NuBus Cards 
  3543.    Enabling and Disabling SResource Data Structures 
  3544.    Searching for Disabled SResource Data Structures 
  3545.    Restoring Deleted SResource Data Structures 
  3546.  Slot Manager Routines 
  3547.    The Slot Manager Parameter Block 
  3548.    Determining the Version of the Slot Manager 
  3549.    Getting Information About SResource Data Structures 
  3550.    Enabling, Disabling, or Restoring SResources 
  3551.  Summary of the Slot Manager 
  3552.    Constants 
  3553.    Data Types 
  3554.    Routines 
  3555.    Result Codes 
  3556.    Assembly-Language Information 
  3557. æC card 1196
  3558. card 1197
  3559. card 1198
  3560. card 1199
  3561. card 1200
  3562. card 1201
  3563. card 1202
  3564. card 1203
  3565. card 1204
  3566. card 1205
  3567. card 1206
  3568. card 1207
  3569. card 1208
  3570. card 1209
  3571. card 1210
  3572. card 1211
  3573. card 1212
  3574. card 1213
  3575. card 1214
  3576. æKY Slot Manager.Tables
  3577. æN  Table 30-1  Slot Manager search routines  
  3578.  Table 30-2  How the Slot Manager determines the base address used by  
  3579. æC line 6 of card 1202
  3580. line 55 of card 1208
  3581. æKY Slot Manager.Listings
  3582. æN  Listing 30-1  Disabling and enabling sResource data structures 
  3583.  Listing 30-2  Searching for sResource data structures 
  3584. æC line 6 of card 1201
  3585. line 4 of card 1203
  3586. æKY Power Manager.Sections
  3587. æN  About This Chapter 
  3588.  About the Power Manager  
  3589.  The Idle State 
  3590.  The Sleep State 
  3591.  The Sleep Queue 
  3592.    Sleep Requests 
  3593.    Sleep Demands 
  3594.    Wakeup Demands 
  3595.    Sleep-Request Revocations 
  3596.  Using the Power Manager 
  3597.    Determining Whether the Power Manager Is Present 
  3598.    Enabling or Disabling the Idle State 
  3599.    Setting, Disabling, and Reading the Wakeup Timer 
  3600.    Placing a Routine in the Sleep Queue 
  3601.    Responding When the Sleep Queue Calls Your Routine 
  3602.    Switching Serial Power On and Off 
  3603.  Power Manager Routines 
  3604.    Controlling the Idle State 
  3605.    Controlling and Reading the Wakeup Timer 
  3606.    Controlling the Sleep Queue 
  3607.    Controlling Serial Power 
  3608.    Reading the Status of the Internal Modem 
  3609.    Reading the Status of the Battery & of the Battery Charger 
  3610.  Summary of the Power Manager 
  3611.    Constants 
  3612.    Data Types 
  3613.    Routines 
  3614.    Result Codes 
  3615. æC card 1215
  3616. card 1216
  3617. card 1217
  3618. card 1218
  3619. card 1219
  3620. card 1220
  3621. card 1221
  3622. card 1222
  3623. card 1223
  3624. card 1224
  3625. card 1225
  3626. card 1226
  3627. card 1227
  3628. card 1228
  3629. card 1229
  3630. card 1230
  3631. card 1231
  3632. card 1232
  3633. card 1233
  3634. card 1234
  3635. card 1235
  3636. card 1236
  3637. card 1237
  3638. card 1238
  3639. card 1239
  3640. card 1240
  3641. card 1241
  3642. card 1242
  3643. æKY Power Manager.Figures
  3644. æN  Figure 31-1  Relationship of an application to the Power Manager 
  3645.  Figure 31-2  How the sleep queue handles a sleep request 
  3646.  Figure 31-3  How the sleep queue handles a sleep demand 
  3647. æC line 5 of card 1216
  3648. line 5 of card 1220
  3649. line 5 of card 1221
  3650. æKY Power Manager.Tables
  3651. æN  Table 31-1  Response of network services to sleep requests and demands 
  3652. æC line 12 of card 1220
  3653. æKY Power Manager.Listings
  3654. æN  Listing 31-1  Adding an entry to the sleep queue 
  3655.  Listing 31-2  A sleep queue routine 
  3656. æC line 25 of card 1228
  3657. line 34 of card 1229
  3658. æKY AppleTalk Manager.Sections
  3659. æN  About This Chapter 
  3660.  About the AppleTalk Manager 
  3661.    Changes to the AppleTalk Manager 
  3662.    AppleTalk Protocols 
  3663.    Device Drivers, Connection Files, and the LAP Manager 
  3664.  Using the AppleTalk Manager 
  3665.    Determining Whether Phase 2 Drivers Are Present 
  3666.    Deciding Which AppleTalk Protocol to Use 
  3667.  The .MPP Driver 
  3668.    Getting Information About the .MPP Driver 
  3669.    A New NBP Wildcard Character 
  3670.  The LAP Manager 
  3671.    The AppleTalk Transition Queue 
  3672.      Adding and Removing AppleTalk Transition Queue Entries 
  3673.      Sending Messages to the AppleTalk Transition Queue 
  3674.      How the AppleTalk Manager Calls Your Queue Entry 
  3675.      Defining Your Own AppleTalk Transition 
  3676.    The LAP Manager 802.2 Protocol 
  3677.    Attaching and Detaching 802.2 Protocol Handlers 
  3678.  The .ATP Driver 
  3679.    Canceling All Calls to the ATPGetRequest Function 
  3680.    Setting the Timeout Value for the ATP Release Timer 
  3681.  The .XPP Driver 
  3682.    Using the .XPP Driver to Obtain Information About Zones 
  3683.    Obtaining Zone Information 
  3684.  AppleTalk Data Stream Protocol (ADSP) 
  3685.    Using ADSP 
  3686.      The ADSP Connection Control Block 
  3687.      The .DSP Parameter Block 
  3688.      Opening and Maintaining an ADSP Connection 
  3689.      Creating and Using a Connection Listener 
  3690.      Writing a User Routine for Connection Events 
  3691.    .DSP Driver Routines 
  3692.      Establishing & Terminating an ADSP Connection 
  3693.      Establishing & Terminating an ADSP Connection Listener 
  3694.      Maintaining an ADSP Connection 
  3695.  The .ENET Driver 
  3696.    Providing Your Own Ethernet Driver 
  3697.    Changing the Ethernet Hardware Address 
  3698.    Opening the .ENET Driver 
  3699.    Using a Write-Data Structure to Transmit Ethernet Data 
  3700.    Using the Default Ethernet Protocol Handler to Read Data 
  3701.    Using Your Own Ethernet Protocol Handler to Read Data 
  3702.      How the .ENET Driver Calls Your Protocol Handler 
  3703.      How Your Protocol Handler Calls the .ENET Driver 
  3704.    .ENET Driver Routines 
  3705.      Attaching and Detaching an Ethernet Protocol Handler 
  3706.      Writing and Reading Ethernet Packets 
  3707.      Adding and Removing Ethernet Multicast Addresses 
  3708.  Summary of the AppleTalk Manager 
  3709.    Constants 
  3710.    Data Types 
  3711.    Routines 
  3712.    Global Variable 
  3713.    Result Codes 
  3714.    Assembly-Language Information 
  3715. æC card 1243
  3716. card 1244
  3717. card 1245
  3718. card 1246
  3719. card 1247
  3720. card 1248
  3721. card 1249
  3722. card 1250
  3723. card 1251
  3724. card 1252
  3725. card 1253
  3726. card 1254
  3727. card 1255
  3728. card 1256
  3729. card 1257
  3730. card 1258
  3731. card 1259
  3732. card 1260
  3733. card 1261
  3734. card 1262
  3735. card 1263
  3736. card 1264
  3737. card 1265
  3738. card 1266
  3739. card 1267
  3740. card 1268
  3741. card 1269
  3742. card 1270
  3743. card 1271
  3744. card 1272
  3745. card 1273
  3746. card 1274
  3747. card 1275
  3748. card 1276
  3749. card 1278
  3750. card 1279
  3751. card 1280
  3752. card 1281
  3753. card 1282
  3754. card 1283
  3755. card 1284
  3756. card 1285
  3757. card 1286
  3758. card 1287
  3759. card 1288
  3760. card 1289
  3761. card 1290
  3762. card 1291
  3763. card 1292
  3764. card 1293
  3765. card 1294
  3766. card 1295
  3767. card 1296
  3768. card 1297
  3769. card 1298
  3770. card 1299
  3771. æKY AppleTalk Manager.Figures
  3772. æN  Figure 32-1  AppleTalk protocols 
  3773.  Figure 32-2  AppleTalk device drivers 
  3774.  Figure 32-3  AppleTalk application interfaces 
  3775.  Figure 32-4  AppleTalk Ethernet packet formats 
  3776.  Figure 32-5  An Ethernet write-data structure 
  3777. æC line 47 of card 1246
  3778. line 18 of card 1247
  3779. line 23 of card 1247
  3780. line 13 of card 1260
  3781. line 3 of card 1284
  3782. æKY AppleTalk Manager.Listings
  3783. æN  Listing 32-1  Calling a LAP Manager L802.2 routine from assembly language 
  3784.  Listing 32-2  Using the GetZoneList function 
  3785.  Listing 32-3  Using the GetMyZone function 
  3786.  Listing 32-4  Using ADSP to establish and use a connection 
  3787.  Listing 32-5  Using ADSP to establish and use a connection listener 
  3788.  Listing 32-6  An ADSP user routine  
  3789.  Listing 32-7  Finding an EtherTalk card and opening the .ENET driver 
  3790.  Listing 32-8  Sending a data packet over Ethernet 
  3791.  Listing 32-9  Using the default Ethernet protocol handler to read data 
  3792. æC line 10 of card 1261
  3793. line 10 of card 1266
  3794. line 52 of card 1266
  3795. line 255 of card 1272
  3796. line 89 of card 1273
  3797. line 41 of card 1274
  3798. line 6 of card 1283
  3799. line 12 of card 1284
  3800. line 13 of card 1285
  3801. æKY Appendix A: Result Codes.Sections
  3802. æN  Appendix A: Result Codes 
  3803. æC card 1300
  3804. æKY Appendix A: Result Codes.Tables
  3805. æN  Table A-1  Result codes  
  3806.  Table A-1  Result codes (Continued) 
  3807. æC line 8 of card 1300
  3808. line 1 of card 1300
  3809. æKY Appendix B: Routines and Their Memory Behavior.Sections
  3810. æN  Appendix B: Routines and Their Memory Behavior  
  3811. æC card 1302
  3812. æKY Appendix B: Routines and Their Memory Behavior.Tables
  3813. æN  Table B-1  Routines that may move or purge memory  
  3814.  Table B-2  Routines that do not move or purge memory but may not be called  
  3815.  Table B-3  Routines that may be called at interrupt time 
  3816. æC line 12 of card 1302
  3817. line 171 of card 1302
  3818. line 234 of card 1302
  3819. æKY Appendix C: System Traps.Sections
  3820. æN  Appendix C: System Traps 
  3821. æC card 1303
  3822. æKY Appendix C: System Traps.Tables
  3823. æN  Table C-1  System traps by trap name 
  3824.  Table C-2  System traps by trap word 
  3825.  Table C-3  System traps that take selectors 
  3826.  Table C-4  Routines selected from system traps 
  3827. æC line 12 of card 1303
  3828. line 75 of card 1303
  3829. line 1 of card 1303
  3830. line 1 of card 1303
  3831. æKY Appendix D: Global Variables.Sections
  3832. æN  Appendix D: Global Variables 
  3833. æC card 1306
  3834. æKY Appendix D: Global Variables.Tables
  3835. æN  Table D-1  Global variables  
  3836. æC line 4 of card 1306
  3837. æKY Appendix E: The Standard Roman Character Set.Sections
  3838. æN  Appendix E: The Standard Roman Character Set 
  3839. æC card 1307
  3840. æKY Appendix E: The Standard Roman Character Set.Tables
  3841. æN  Table E-1  The standard Roman character set  
  3842.  Table E-2  Unencoded PostScript characters  
  3843. æC line 7 of card 1307
  3844. line 115 of card 1307
  3845. æKY Glossary.Sections
  3846. æN  Glossary 
  3847. æC card 1309
  3848.